G
G
Gregory2017-05-27 22:51:31
IntelliJ IDEA
Gregory, 2017-05-27 22:51:31

How to automatically delete the last empty lines when saving a file in WebStorm / PhpStorm?

Tell me if the storm has a setting so that when you save the file, all the last empty lines are deleted? VS Code has this setting, removes everything and adds (optionally) one empty line. Is it possible to do this in a storm, who knows?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
i, 2017-07-04
@ilyarsoftware

See Code Style settings ( Settings/Editor/Code Style ), configured separately for each language, look for options Ignore files and folders (remove spaces from empty lines), Blank Lines tabs (settings for allowed empty lines).
These settings can be saved in a named scheme and possibly shared with colleagues.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question