Sublime Forum

Cursor Does Not Remain Fixed When I hit Save

#1

Hi,
We all need to save our files to see the result of our new codes. But as soon as I hit save, the cursor runs to beginning position of line… How can I fix this?

Before saving:

After saving:

Thanks for your time & support,
Touhid R.

0 Likes

#2

The problem that you’re describing sounds like you might have this option turned on:

// Set to true to removing trailing white space on save
"trim_trailing_white_space_on_save": false,

As seen here it defaults to false, but if you have it turned on, it would cause the trailing white space on the line the cursor is on to be removed on save, and since there is no text left in the line, the cursor moves back to the first column.

1 Like

#3

Thanks my friend :slight_smile:

0 Likes