Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Php Storm with "Strip trailing spaces on Save" set to "All" ignores line with cursor

Having 2 lines with trailing spaces and cursor at the end of the 2nd one, on save action only trailing spaces from 1st line will be striped.

I mean, if I have this:

1st_line[space]
2nd_line[space][cursor]

after save action I will have

1st_line
2nd_line[space][cursor]

Is it possible to also strip the line with cursor?

(It can be a philosophical question - Is space in the 2nd line really trailing or not? Though there is cursor behind it)

like image 435
kuba Avatar asked Oct 29 '13 14:10

kuba


1 Answers

You can vote of this feature request:

  • Strip white space left of caret on manual save
like image 111
CrazyCoder Avatar answered Sep 24 '22 20:09

CrazyCoder