General programming packages - mrmartineau/SublimeTextSetupWiki GitHub Wiki

Below is a list of all the good packages for general programming and development

Inc-Dec-Values

By rmaksim - Install through Package Control

Increase / decrease of numbers (integer and fractional), dates, hex color values, opposite relations or cycled enumerations on the configured value and a bonus - string actions (upper, lower, capitalize).

Useful keybindings for numbers:

alt+up/down increases/decreases the one character to the left on +1/-1

super+up/down increases/decreases the one character to the left on +10/-10

super+alt+ctrl+up/down increases/decreases the one character to the left on +100/-100

Useful keybindings for strings:

alt+up/down Capitalise

super+up/down UPPERCASE

alt+down or super+down lowercase

Useful keybindings for opposite relations or cycled enumerations:

super+alt+up/down Changes the value under the cursor ("true" or "false") to the opposite

super+alt+ctrl+up/down Enumerate/cycle through the examples in the sublime-settings file (Example are days of the week, month names & CSS style properties - very handy)


Move Text

By Colin Thomas-Arnold - Install through Package Control

Select text and drag it around, or setup a text tunnel to move code from one location to another.

Useful keybindings

(these need to be added to Users/Default (OSX).sublime-settings: super+ctrl+left Move text left super+ctrl+right Move text right

Add the following to your User/Default (OSX).sublime-keymap file

// Move Text
{ "keys": ["super+ctrl+left"], "command": "move_text_left" },
{ "keys": ["super+ctrl+right"], "command": "move_text_right" }

Auto Semi-colon

By Lewis Wright - Install through Package Control

Automatically moves a semi-colon to the outside of the last bracket when pressed inside. This is great when used in LESS mixins or javascript functions. Its a small but very useful package.


Alignment

By Will Bond - Install through Package Control

Dead-simple alignment of multi-line selections and multiple selections.

Keybinding

ctrl+alt+a on Windows and Linux, or cmd+ctrl+a on OS X.


EditorConfig

Install through Package Control

EditorConfig helps developers define and maintain consistent coding styles between different editors and IDEs. The EditorConfig project consists of a file format for defining coding styles and a collection of text editor plugins that enable editors to read the file format and adhere to defined styles. EditorConfig files are easily readibly and they work nicely with version control systems.


Gist

By Dmitry Budaev - Install through Package Control

Create new Gists from selected text & print existing Gists from Github.com. Nettuts+ Sexy Code Snippet Management With Gists.

Installation options

See here for setup instructions.


All Autocomplete

By Adrian Lienhard - Install through Package Control

Extend Sublime Text 2 autocompletion to find matches in all open files of the current window


MoveTab

By Frédéric Massart - Install through Package Control

Plugin to move tabs around.