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 20K
  • Win 11K
  • OS X 6K
  • Linux 4K
Aug 24 Aug 23 Aug 22 Aug 21 Aug 20 Aug 19 Aug 18 Aug 17 Aug 16 Aug 15 Aug 14 Aug 13 Aug 12 Aug 11 Aug 10 Aug 9 Aug 8 Aug 7 Aug 6 Aug 5 Aug 4 Aug 3 Aug 2 Aug 1 Jul 31 Jul 30 Jul 29 Jul 28 Jul 27 Jul 26 Jul 25 Jul 24 Jul 23 Jul 22 Jul 21 Jul 20 Jul 19 Jul 18 Jul 17 Jul 16 Jul 15 Jul 14 Jul 13 Jul 12 Jul 11 Jul 10
Windows 5 16 15 12 4 9 12 20 15 16 5 4 3 5 14 13 11 9 10 4 9 13 6 13 8 3 3 6 11 9 13 13 6 5 7 11 15 12 8 10 3 8 13 13 12 9
OS X 0 6 2 3 1 3 1 5 6 8 6 2 2 4 2 5 3 4 0 2 2 5 4 5 4 2 1 5 4 3 5 6 1 2 2 4 2 5 5 1 3 6 4 4 9 5
Linux 3 2 5 0 3 4 4 7 5 8 0 3 1 1 4 3 4 7 2 2 3 7 3 8 7 2 0 5 0 6 4 8 1 1 6 1 6 8 4 2 0 4 5 5 1 6

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