Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I recently updated my copy of Sublime Text to 3. Everything is awesome, except one thing that is driving me crazy. Whenever I indent my line with the tab key, it automatically undoes it. I then have to hit tab a second time for it to 'stick'.

Example

<html>
    <body>
    </body>
</html>

This is how I want my HTML to be presented, however, when I open the bracket of the 'body' tag, sublime automatically adjusts my line to

<html>
< -- I don't want to type here, Sublime!
</html>

I then have to delete my '<' and hit tab a second time. At this point it will allow me to type with the indent.

I expect this is some kind of preference that has been enabled, but I have no idea what to look for.

Anyone know how I can change this?

Thanks

share|improve this question

migrated from stackoverflow.com Apr 23 '14 at 17:57

This question came from our site for professional and enthusiast programmers.

    
this quetion is not suitable for stackoverflow, should be moved to superuser. I flagged it, will probably me moved in the next minutes –  ederollora Mar 30 '14 at 14:47

2 Answers 2

Try disabling your 'auto_indent' or 'smart_indent' settings (from True to False).

Here's a link to additional indentation settings:

http://www.sublimetext.com/docs/3/indentation.html

share|improve this answer

Add "trim_automatic_white_space": false to your user settings. When set to true, auto indent tabs will be automatically removed when the cursor is moved off of the line.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.