Skip to content

Brackets extension. When you write { , [ or ( and press enter, closes the tag and leaves the cursor in the middle line with correct indentation.

Notifications You must be signed in to change notification settings

beldar/Auto-Brackets

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Auto-Brackets

Deprecation notice

I downloaded the latest version of Brackets today (0.42 at this moment), and read through the documentation when I found this method from the editor Editor.getCloseBrackets that reads:

Gets whether the specified or current file uses auto close brackets

So basically I discovered that Brackets does what this extension intended to do out of the box now, to activate it, open the preference file Debug -> Open Preferences File and add this line:

"closeBrackets": true

And Cmd+R to reload the editor, now Brackets will close all your brackets (no pun intended) and ultimately doing what this extension was supposed to do way better than it currently does it.

So without further a due I declare this extension deprecated and I advise you use the native method.

Thank you all for your interest.


An extension for Brackets for automatic closure of brackets and curly braces on enter key.

How to Install

  1. Select Brackets > File > Extension Manager
  2. Search for this extension.
  3. Click on the Install button.

How to use Auto-Brackets

When you write { , [ or ( and press enter, closes the tag and leaves the cursor in the middle line with correct indentation.

Example


Tested on Brackets Sprint 39, Mac OS X.

About

Brackets extension. When you write { , [ or ( and press enter, closes the tag and leaves the cursor in the middle line with correct indentation.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published