Skip to content

Epskampie/sublime_indent_and_braces

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 

Repository files navigation

Sublime Indent and braces

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

Alt text

Installation

  • Install Package manger if you haven't already
  • Press Ctrl+Shift+P -> install package -> indent and braces
  • Add the following shortcut to your keybindings (customize keys as desired)
{ "keys": ["ctrl+i"], "command": "indent_and_braces" },

Options

opening_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": "]" } },

from_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} },

About

Sublime text 2 & 3 plugin to indent selection and wrap it in braces

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages