dabblet
dabblet copied to clipboard
adding smart curly bracket features
Sublime-like curly brackets with a couple of features:
- auto complete (add "}" after typing "{")
- auto indention in new line (use developer's indent unit used in previous lines and if not available uses default indent)
- nesting support
- selection support (hit "{" while selecting a text)
- undo manager support
I know this repo is not active but I loved this product and I'm used to this feature in Sublime so I wish to have it here in Dabblet too.
just in case... auto add "}" after typing "{" can be conditional?
I hate when correcting a typho and the editor creates an extra bracket like "hello()}" -> "hello(){
}" ->auto add occurs here->"hello(){}}".
Yes it's conditional. It will only add "}" when you are typing "{" as the last character in the line. E.g if you correct something here:
someCode('Hello', true, 2, function() { return true; });
Nothing weird happens.