format xml and json
https://wiki.base22.com/display/btg/How+to+format+XML+files+in+Sublime+Text+2
Install Indent XML plugin
ALT+K,F
Switch between tabs
Ctrl+tab
How do I force Sublime Text 2 to indent two spaces per tab?
[
{ "keys": ["shift+space"], "command": "move", "args": {"by": "characters", "forward": true} }
]
If you just want to literally insert those characters, you can set up your "User Key Bindings" like this:
[
{ "keys": ["ctrl+."], "command": "insert", "args": {"characters": "<%= %>"} }
]
diff tool
http://www.sublimerge.com/
https://wiki.base22.com/display/btg/How+to+format+XML+files+in+Sublime+Text+2
Install Indent XML plugin
ALT+K,F
Switch between tabs
Ctrl+tab
How do I force Sublime Text 2 to indent two spaces per tab?
If you want it for all files, go to
Preferences -> Settings - Default/User
. But as several comments below indicate, Syntax Specific settings can limit it to just the languages you choose.
To limit this configuration to ruby files, first open up a ruby file in the editor, and then go to
Preferences -> Settings -> More -> Syntax Specific -> User
. This should open a settings window named Ruby.sublime-settings
If you want to force your chosen tab setting, ignoring what's likely already going on in the file, then you should include detect_indentation
in your configuration (your User settings or your Syntax Specific settings, depending on if you want it global or per-filetype):
{
"tab_size": 2,
"translate_tabs_to_spaces": true,
"detect_indentation": false
}
Repeat for any other syntax types by opening a file of that type and going back to the preferences to open the correct preferences file for that syntax.
A keybinding for Sublime Text 2 that makes SHIFT + SPACE move the cursor one character to the right Raw[
{ "keys": ["shift+space"], "command": "move", "args": {"by": "characters", "forward": true} }
]
If you just want to literally insert those characters, you can set up your "User Key Bindings" like this:
[
{ "keys": ["ctrl+."], "command": "insert", "args": {"characters": "<%= %>"} }
]
diff tool
http://www.sublimerge.com/