Created
October 30, 2014 00:00
-
-
Save daftspunk/36b546fb2c1058da99ca to your computer and use it in GitHub Desktop.
Convert 2 spaces to 4 spaces, Sublime Text macro
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Show hidden characters
// | |
// Converts code indentation from 2 spaces to 4 spaces | |
// | |
// For a hotkey, add to Preferences > Key Bindings - User: | |
// | |
// { "keys": ["ctrl+alt+i"], "command": "run_macro_file", "args": {"file": "res://Packages/User/ConvertTwoSpacesToFour.sublime-macro"} } | |
// | |
[ | |
{ | |
"args": | |
{ | |
"setting": "tab_size", | |
"value": 2 | |
}, | |
"command": "set_setting" | |
}, | |
{ | |
"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