Sublime Forum

Unexpected indent with smart_indent = false

#1

Hi!

I have the following indentation settings:

"use_tab_stops": false,
"detect_indentation": false,
"auto_indent": true,
"smart_indent": false,
"indent_to_bracket": false,
"trim_automatic_white_space": true,

As you can see, smart_indent is off, so I expect each line to be indented as the previous one. But when I type something like this in JavaScript:

SomeClass.prototype.someMethod = function() {

and hit Enter, the cursor on the next line is indented.

What am I doing wrong and how to fix this?

0 Likes