Skip to content

Sublime plugin to add/remove spaces around matching brackets.

License

Notifications You must be signed in to change notification settings

mreq/BracketSpacer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

BracketSpacer

As seeked by /u/HighR0ller.

Adds space on the matching bracket (on the same line)

Press spacebar twice to add spaces. Binding to a single spacebar press is unfortunately not possible with sublime.

With | being the cursor:

[|foo]
<space><space>
[ |foo ]
{|{ foo: bar }}
<space><space>
{ |{ foo: bar } }
(|)
<space><space>
( | )

Removes space on the matching bracket (on the same line)

Press backspace after a space char inside of brackets.

[ |foo ]
<backspace>
[|foo]
{ |{ foo: bar } }
<backspace>
{|{ foo: bar }}
( | )
<backspace>
(|)

About

Sublime plugin to add/remove spaces around matching brackets.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages