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

Installs

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

Readme

Source
raw.​githubusercontent.​com

Sublime BracketGuard Build Status

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