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

Bracket​Guard

by philippotto ALL

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

Labels brackets

Details

Installs

  • Total 37K
  • Win 21K
  • Mac 9K
  • Linux 7K
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 29 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 Feb 12 Feb 11 Feb 10 Feb 9 Feb 8 Feb 7 Feb 6 Feb 5 Feb 4 Feb 3
Windows 0 0 1 0 0 0 2 2 1 0 1 2 1 0 0 0 1 3 1 1 2 1 0 1 4 2 0 0 2 1 1 0 1 0 0 2 0 1 1 0 0 2 0 2 1 2
Mac 0 0 0 1 0 0 0 1 0 0 1 0 0 0 1 1 0 1 0 1 0 0 0 3 0 0 0 0 0 1 0 1 1 0 1 0 1 0 0 0 0 0 0 0 0 0
Linux 0 0 1 0 0 0 0 1 0 0 0 1 0 0 0 1 0 0 1 0 0 1 0 0 0 1 1 1 1 0 0 0 0 1 1 0 1 0 0 1 0 2 1 2 0 0

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