A
A
Alexander Loginov-Solonitsyn2015-04-13 09:01:30
phpstorm
Alexander Loginov-Solonitsyn, 2015-04-13 09:01:30

PHPStorm removes indentation when saving a file. How to cure?

I am slowly reconfiguring PHPStorm to my taste, in connection with this question - when saving a file, indents in empty lines are automatically removed. That is, if there are only indents in the line (in my case, tabs) and there is no cursor on this line, then all indents will be deleted. Tell me how to cure it?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
Denis Ryzhov, 2015-04-13
@kasheibess

It?
Preferences->Editor->General->Strip trailing Spaces on save (All, Modified lines, None) - None

M
Mikhail Osher, 2015-04-13
@miraage

Editor > Code Style > Keep indents on empty lines

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question