Last active
March 17, 2020 02:33
-
-
Save brandondurham/760f48fe5998cfd38ad1 to your computer and use it in GitHub Desktop.
Convert indentation from 2 spaces to tabs in Sublime Text
This file contains hidden or 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
// Convert 2 spaces to tabs in Sublime Text | |
// To add a key binding, go to "Sublime Text » Preferences » Key Bindings - User" and add the following line: | |
// { "keys": ["super+;"], "command": "run_macro_file", "args": {"file": "Packages/User/convert_spaces_to_tabs.sublime-macro"} } | |
// Change the `super+;` shortcut accordingly. | |
[ | |
{ | |
"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" | |
} | |
] |
Thanks ;)
Thanks! This is awsome!
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Bless you sir.