Answer the question
In order to leave comments, you need to log in
How to convert indentation 2 tabs to 4 in sublime?
There is a code written through Spaces 2. I need it to be in Tabs 4.
The sub has such a window.
I googled this problem and googled this advice:
Go to:
View -> Indentation
It should read:
Indent using spaces [x]
Tab width: 2
Select:
Convert Indentation to Tabs
Then Select:
Tab width: 4
Convert Indentation to Spaces
Done.
Answer the question
In order to leave comments, you need to log in
I understood what was the problem. The code itself was written incorrectly and the sub could not do anything with it
Convert to tabs first, then set tab width to 4. I also convert tabs to spaces and get 4 spaces. I do this all the time and it works.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question