W
W
Web Lizard2015-12-17 14:11:40
Sublime Text
Web Lizard, 2015-12-17 14:11:40

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.
7fb843e5fe.jpg
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.

But this advice did not help, simply nothing happens.
What needs to be done to make it work?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
W
Web Lizard, 2015-12-17
@Lizard-108

I understood what was the problem. The code itself was written incorrectly and the sub could not do anything with it

M
Maxim Zhgulev, 2015-12-17
@e_s_l

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 question

Ask a Question

731 491 924 answers to any question