Sublime Text 2 doesn't have the same indentation as Notepad ++

I just switched from Geany to Sublime Text. It has a lot of nice features, but I just can't get used to indentation. I used Geany mainly because I could adjust the indentation level just like in Notepad ++ (Auto indent mode: Basic).

For example:

<element>
    <element>ENTER
    indent here

      

In Sublime format:

<element>
    <element>ENTER
        indent here

      

I would like to know how to have the same indentation as Geany (Basic mode) and Notepad ++.

In my config file on Sublime Text, I added:

"auto_indent": true,
"smart_indent": false

      

which is not enough.

+3


source to share


1 answer


The indentation is controlled by the selected syntax. I get the described behavior when I select XML syntax for Sublime Text 3 (3065, Mac).



Try a different syntax like HTML and you should get the indentation you want.

+1


source







All Articles