I want to replace all the "four spaces" that is written by another text editor with tabs. How can I do it?
How to replace four spaces with a tab in Sublime Text 2
editorsublimetext
Related Topic
- Python – How to run Python code from Sublime Text 2
- Html – How to reformat HTML code using Sublime Text 2
- How to force Sublime Text to indent two spaces per tab
- Sublime Text 2 – View whitespace characters
- Sublime Text 2 – Show file navigation in sidebar
- How to convert a selection to lowercase or uppercase in Sublime Text
- Replace \n with actual new line in Sublime Text
Best Answer
Bottom right hand corner on the status bar, click
Spaces: N
(orTab Width: N
, where N is an integer), ensure it saysTab Width: 4
for converting from four spaces, and then selectConvert Indentation to Tabs
from the contextual menu that will appear from the initial click.Similarly, if you want to do the opposite, click the
Spaces
orTab Width
text on the status bar and select from the same menu.