Brackets Snippets

by Jonathan Rowny for brackets >=0.36 
Provides ability to use code snippets in Brackets.
version
1.1.0
modified
2014-03-14T15:51:03.320Z
first seen
2013-06-20T14:35:05.647Z
downloads
43318
 Versions
1.1.0
2014-03-14T15:51:03.320Z
34109
1.0.0
2013-06-20T14:35:05.647Z
9209
 Readme
brackets-snippets ================= Brackets Snippets extension. Extension is available in the [Brackets extension registry](https://brackets-registry.aboutweb.com/). To install, go to the Brackets Extension Manager and search for `brackets snippets`. Usage ===== Icon on the right toolbar shows you what snippets are available. Click any snippet to begin inserting.<br> **Ctrl-Alt-Space** to insert the snippet. (Cmd-Alt-Space on Mac). type a trigger followed by parameters (optional), then hit Ctrl-Alt-V ```f myFunc``` becomes ``` function myFunc () { } ``` ```for x myArray``` becomes: ``` var x; for (x = 0; x < myArray.length; x++) { } ``` If you omit parameters, an inline form will appear. Use `ESC` to close the inline form or `ENTER` to complete the insertion. Adding Snippets =============== You can create new JSON files in the ```data``` directory or you can edit the existing ```javascript.json``` file. Your JSON files can reference template files if they have a `.snippet` extension and are in the `data\snippets` directory. See html5.snippet for an example.