Sublime text 2 & 3 plugin to indent selection and wrap it in braces. Useful to add if () statements for example.

{ "keys": ["ctrl+i"], "command": "indent_and_braces" },
undefinedopening_brace & closing_brace: These options allow you to modify the kind of braces the plugin will insert.
{ "keys": ["ctrl+shift+i"], "command": "indent_and_braces", "args": { "opening_brace": "[", "closing_brace": "]" } },
undefinedfrom_cursor: Normally the plugin will determine intelligently wether or not to place the opening brace on a new line. If you want to force this, you can use from_cursor.
{ "keys": ["ctrl+j"], "command": "indent_and_braces", "args": { "from_cursor": false} },
We use cookies
We use cookies to analyze traffic and improve your experience. You can accept or reject analytics cookies.