Skip to content

Instantly share code, notes, and snippets.

@jdforsythe
Created August 18, 2015 12:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jdforsythe/4ac0617d6a59e6b6099e to your computer and use it in GitHub Desktop.
Save jdforsythe/4ac0617d6a59e6b6099e to your computer and use it in GitHub Desktop.
ST2 or ST3 macro to convert 4-space indentation to 2-space indentation
[
{
"args": null,
"command": "select_all"
},
{
"args": {
"setting": "tab_size",
"value": 4
},
"command": "set_setting"
},
{
"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"
},
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment