A
A
Artem Shchurin2015-11-18 09:57:59
Sublime Text
Artem Shchurin, 2015-11-18 09:57:59

Why doesn't Sublime insert spaces and tabs when reindenting lines?

Good afternoon!
I want to clean up a piece of compressed svg in Sublime Text 3, there are no tab spaces.
Reindent Lines only sets the indent size depending on the nesting level, it does not put spaces and tabs.
How can I get out of this situation?
PS
It was not possible to set up reindent Lines.
I found this plugin
https://github.com/titoBouzout/Tag

Answer the question

In order to leave comments, you need to log in

1 answer(s)
F
Foo Bar, 2015-11-18
@schurin

I won't tell you the exact solution, but I can help you find it.
To get started, you need to go here: www.sublimetext.com/docs/2/indentation.html
These are the general rules for code alignment. They can be made the same for a specific syntax, you can write your own rules for SVG.
Also, because SVG is essentially XML, try searching the Command Palette for the Indent XML command.
Just in case, I will write that this command may fail if there is no empty line after XML, or if you try to apply this command to code other than XML or to several XML at once. It is necessary to allocate high-grade XML.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question