ctrl+shift+p filters: :st2 :st3 :win :osx :linux
Browse

Bracket​Guard

by philippotto ST2/ST3

A Sublime Text 2/3 Plugin which immediately highlights incorrect brackets.

Labels brackets

Details

  • 1.0.11
  • github.​com
  • github.​com
  • 12 months ago
  • 52 minutes ago
  • 2 years ago

Installs

  • Total 18K
  • Win 10K
  • OS X 5K
  • Linux 3K
Mar 30 Mar 29 Mar 28 Mar 27 Mar 26 Mar 25 Mar 24 Mar 23 Mar 22 Mar 21 Mar 20 Mar 19 Mar 18 Mar 17 Mar 16 Mar 15 Mar 14 Mar 13 Mar 12 Mar 11 Mar 10 Mar 9 Mar 8 Mar 7 Mar 6 Mar 5 Mar 4 Mar 3 Mar 2 Mar 1 Feb 28 Feb 27 Feb 26 Feb 25 Feb 24 Feb 23 Feb 22 Feb 21 Feb 20 Feb 19 Feb 18 Feb 17 Feb 16 Feb 15 Feb 14 Feb 13
Windows 0 16 16 16 11 6 12 12 13 9 13 10 9 8 12 9 9 17 12 12 12 19 16 18 16 9 8 10 8 21 9 7 6 7 8 14 8 9 14 11 7 19 9 10 17 16
OS X 0 5 8 3 3 3 2 6 8 4 3 2 1 1 4 3 6 5 2 1 9 8 8 4 2 4 1 6 2 0 2 2 2 0 6 14 8 5 3 3 2 6 4 3 8 5
Linux 0 6 6 8 2 2 2 3 6 4 6 1 4 3 4 9 6 4 8 4 7 3 5 4 3 0 1 8 3 5 3 8 1 4 8 5 6 3 2 1 5 1 2 5 10 6

Readme

Source
raw.​githubusercontent.​com

Sublime BracketGuard

A Sublime Text 2/3 Plugin which immediately highlights incorrect brackets. Balancing different kinds of brackets is a requirement which can be found in a broad set of programming languages. Nevertheless, Sublime Text does not highlight obviously wrong parenthesis. BracketGuard changes this.

A quick test: Can you tell me, whether the following code is valid?

I'm sure you can! You don't even have to know the language to see that the brackets are wrong. But how long did it take you to find the error? And how long did it take you to realize that there are two brackets wrong instead of only one?

With the help of BracketGuard you will spot syntactic bracket mistakes in a split second. Here is an example of how mistakes will be highlighted:

BracketGuard will highlight the first unexpected closing bracket and the corresponding opening bracket to which its counterpart is expected. After finding the first bracket error, BracketGuard will stop to check the rest of your code, because following mistakes cannot be determined due to the corrupt balancing.

Settings

The settings file includes two options:

  • file_length_threshold: Every file which has more characters than this threshold won't be checked automatically.
  • check_on_save: When set to true, the file will be (additionally) checked when saving the file.

Installation

Either use Package Control and search for BracketGuard or clone this repository into the Sublime Text “Packages” directory.

License

MIT © Philipp Otto