Sublime Forum

Tab problem

#1

Hi, first of all, I am brazilian and I do not speak English very well, so I am sorry if I make any mistake here.

I have been using Sublime Text 2 for about two weeks because now I have to use a PC for web development. I really liked it, I still had no enough time to explore all the features and plugins, but as far as I could see it is great. I am used to work on Coda for Mac and it is the first time I see something as great as Coda, but for Windows.

There is just one simple bug that annoys me. Whenever I need to click on a line where contains some “tabs” (identation), but the line is empty, it starts from the beginning of the line. Even if all the code has the identation and I press the tab key that line, if I don’t write anything there and click again later, it start from the beginning again, ignoring the code identation I did there.

Of course we always can press tab again to fix it, but it is a bug that annoys me and also slow me down a little bit. It’s something that does not happen with Coda or even Notepad++.

I am consider buying Sublime Text as I did to Coda, but I will explore a little bit more and wait for this to be fixed before buying it.

0 Likes

#2

Set this in your user preferences:

"trim_automatic_white_space": false,

Don’t ask me why it’s on by default…

0 Likes

#3

Also make sure you haven’t changed this one:

    "trim_trailing_white_space_on_save": false,

(Thankfully it’s off by default.)

0 Likes

#4

There are two settings!? facepalm

0 Likes

#5

Thanks, now it’s working perfectly! I wonder how the original settings could help and why they don’t turn it false by default.

0 Likes