Skip to content

Instantly share code, notes, and snippets.

@xtornasol512
Last active February 8, 2017 20:04
Show Gist options
  • Save xtornasol512/9e6868138b1787a954876d0666a40145 to your computer and use it in GitHub Desktop.
Save xtornasol512/9e6868138b1787a954876d0666a40145 to your computer and use it in GitHub Desktop.
Convert 4 spaces to 2 spaces with Sublime
Assuming you have the following settings in Sublime:
"tab_size": 2,
"translate_tabs_to_spaces": true,
If you get a file indented with 4 fucking spaces:
``
Select all
View > Indentation > tab width: 4
View > Indentation > convert indentation to tabs
View > Indentation > tab width: 2
View > Indentation > convert indentation to spaces
``
If you get a file indented with 2 fucking tabs, just skip step 2.
@xtornasol512
Copy link
Author

Steps thanks by Tessa Thornton

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment