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

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