Skip to content

Instantly share code, notes, and snippets.

@beaugunderson
Created January 23, 2014 23:22
Show Gist options
  • Save beaugunderson/8588871 to your computer and use it in GitHub Desktop.
Save beaugunderson/8588871 to your computer and use it in GitHub Desktop.
Sublime Text macros for converting to and from 2 and 4 space indentation
[
{
"keys": ["ctrl+2"],
"command": "run_macro_file",
"args": {
"file": "Packages/User/to-2.sublime-macro"
}
},
{
"keys": ["ctrl+4"],
"command": "run_macro_file",
"args": {
"file": "Packages/User/to-4.sublime-macro"
}
}
]
[
{ "args": { "set_translate_tabs": true }, "command": "unexpand_tabs" },
{ "args": { "setting": "tab_size", "value": 2 }, "command": "set_setting" },
{ "args": { "set_translate_tabs": true }, "command": "expand_tabs" }
]
[
{ "args": { "set_translate_tabs": true }, "command": "unexpand_tabs" },
{ "args": { "setting": "tab_size", "value": 4 }, "command": "set_setting" },
{ "args": { "set_translate_tabs": true }, "command": "expand_tabs" }
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment