https://github.com/beldar/auto-brackets
Brackets extension. When you write { , [ or ( and press enter, closes the tag and leaves the cursor in the middle line with correct indentation.
https://github.com/beldar/auto-brackets
Last synced: 12 months ago
JSON representation
Brackets extension. When you write { , [ or ( and press enter, closes the tag and leaves the cursor in the middle line with correct indentation.
- Host: GitHub
- URL: https://github.com/beldar/auto-brackets
- Owner: beldar
- Created: 2014-05-30T21:20:12.000Z (about 12 years ago)
- Default Branch: master
- Last Pushed: 2023-03-18T15:25:16.000Z (over 3 years ago)
- Last Synced: 2025-01-28T14:22:37.046Z (over 1 year ago)
- Language: JavaScript
- Homepage:
- Size: 202 KB
- Stars: 1
- Watchers: 2
- Forks: 2
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
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](http://brackets.io/docs/current/modules/editor/Editor.html#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](https://github.com/adobe/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.

***
Tested on Brackets Sprint 39, Mac OS X.