phpstorm - Remove tabs or spaces from empty lines -


i know phpstorm allows option remove spaces @ end of line.

is possible configure remove tabs or spaces on empty lines?

example: type following

if (1 == 1) { 

then press enter twice, , continue coding...

if (1 == 1) {      saveplanet(); 

the empty line in middle has spaces, want empty line.

you have 2 options here:

  1. settings | editor | general, strip trailing spaces on save - when it's set all, trailing spaces/tabs removed on save, including ones on empty lines
  2. settings | editor | code style | <your language> | tabs , indents, keep indents on empty lines: when disabled, spaces/tabs on empty lines removed on code reformatting

Comments

Popular posts from this blog

sql server - Cannot query correctly (MSSQL - PHP - JSON) -

php - trouble displaying mysqli database results in correct order -

C++ Linked List -