Sublime Forum

New Line Indentation

#1

Hi, is there a setting that I can edit that will allow me to use the arrow keys to jump to around, while staying at the current/correct indentation level?

For example: Within a function I may press enter 3 times (without typing), each time my cursor is at the correct indentation level. However if I hit the up or down key I fall out of the correct indentation and my cursor is placed at the very beginning of the line.

0 Likes

#2

I know this question is almost 2 year old, but I had to make like 30 different search to finally find the answer to your question.

I’ve almost abandonned Sublime because of this weird hidden setting.

Sublime just delete your tabulation as you add new lines, and this is because of this setting

trim_automatic_white_space

You have to set in your config file :
"trim_automatic_white_space": false

and adding new line wont just delete your previous indentation.

I really really really dont understand the mindset of wanting to have this setting true by default, this makes less than no sense, and yes, less than 0 is possible, just look at this option :smile:

0 Likes