Sublime Forum

About the indentation problem

#1

In my written a function name (line 1) and input {after pressing the Enter key cursor will jump to the next line, and indented two spaces (line 2), but the problem comes, this time if I continue to press the Enter key, then the cursor to jump to the next line and indent the two squares (line 3), then if I press the arrow keys on the want to back to a line (line 2) is back to the beginning of the line rather than returning to the indentation, This feeling is not good,
I want to make it back to the beginning of the line , how to do???

as shown in Figure

http://img.bbs.csdn.net/upload/201604/09/1460199395_346687.gif

0 Likes

#2

From the default settings:

    // Trims white space added by auto_indent when moving the caret off the
    // line.
    "trim_automatic_white_space": true,
1 Like

#3

perfect!!! great!!!thank you !!!!

0 Likes