[quote=“shanebdavis”]I’d like to second this “feature request”. It seems to me that “auto_indent” should ONLY maintain the indention level. “Smart_indent” should do any extra special language-specific indentation.
[/quote]
I’ll add another vote to the request to fix this bug (smart_indent=false doesn’t fully disable smart indent). This is how every other editor I have ever used behaves when you turn on auto indent and turn off their equivalent of smart indent (visual studio, xcode, vim, kate, kdevelop, textwrangler, eclipse, …).
Like the previous poster, this is a show-stopper for me. So far in my evaluation, ST2 is exactly what I want in a text editor for coding - except for this one annoying auto-indent bug/“feature”.
I was able to find an ad-hoc workaround. I enabled “auto_match_enabled”. Then I modified Add Line in Braces.sublime-macro to remove the final “reindent” command. Now, when I type
if (test)
{|
the auto match feature inserts
if (test)
{|}
and when you press enter, the modified macro does this
if (test)
{
|
}
This is a poor workaround, because auto_match is almost as annoying as the smart indent. At least the auto match is smart enough to allow me to type the matching bracket without duplicate characters. So as long as I don’t look at the screen it doesn’t bug me