How do I change tabs to spaces in Sublime Text 3?
Then, how do I change the tab space in Sublime Text?
You can also do this with the text link in the bottom bar of Sublime Text 2 ( On the right side ) that says "Tab Size 4" by default, click that and a window comes up with options to set the tab size from 1 space all the way up to 8 spaces and includes options to convert tabs to spaces and spaces to tabs.
- While editing a .yml file in Sublime Text 2, go to the Sublime Text 2 menu.
- Sublime Text 2 will open a settings file specific to the language you chose to edit settings for.
- Use the following code to set up your indentation settings: { "tab_size": 2, "translate_tabs_to_spaces": true }
Hereof, how do you change the indentation in Sublime Text 3?
3 Answers. That's quite simple in Sublime. Just Ctrl+Shift+P (to open tools pallet), type reindent , and pick Indentation: Reindent Lines . It should reindent all the file you are in, just remember to save before running the command, or it may not appear.
When using tabs it's important to keep in mind that tab characters represent the number of characters until the next 8 character tab stop. Sometimes we can approximate this idea by saying that tabs are equal to 8 spaces.