ctrl+shift+p filters: :st2 :st3 :win :osx :linux
Browse

Indent and braces

Indent selection and wrap it in braces.

Details

Installs

  • Total 4K
  • Win 2K
  • OS X 1K
  • Linux 905
Oct 23 Oct 22 Oct 21 Oct 20 Oct 19 Oct 18 Oct 17 Oct 16 Oct 15 Oct 14 Oct 13 Oct 12 Oct 11 Oct 10 Oct 9 Oct 8 Oct 7 Oct 6 Oct 5 Oct 4 Oct 3 Oct 2 Oct 1 Sep 30 Sep 29 Sep 28 Sep 27 Sep 26 Sep 25 Sep 24 Sep 23 Sep 22 Sep 21 Sep 20 Sep 19 Sep 18 Sep 17 Sep 16 Sep 15 Sep 14 Sep 13 Sep 12 Sep 11 Sep 10 Sep 9 Sep 8
Windows 4 2 2 2 2 1 11 16 23 6 4 11 10 33 10 4 1 2 7 6 11 9 3 0 4 2 3 3 5 0 1 4 5 4 3 3 0 1 4 4 1 3 2 2 0 1
OS X 0 0 0 3 0 2 3 4 0 3 5 7 3 0 1 1 0 0 2 2 1 0 2 0 0 0 1 0 0 0 0 1 2 3 0 0 0 0 0 0 1 0 0 0 0 0
Linux 2 2 0 2 0 0 1 2 0 2 1 3 0 2 2 0 0 0 0 1 2 0 0 0 0 1 0 2 2 1 0 1 0 1 0 2 0 0 2 1 1 1 0 0 1 2

Readme

Source
raw.​githubusercontent.​com

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