Ensure line feed at file end on Reformat

Answered

Hi,

is there a way to add a missing line feed at file end on Reformat (Ctrl + Alt + L)?

Thanks

0
3 comments

There are Settings(Preferences) | Editor | Code Style | Java | Blank Lines specific for different code constructs options but no such general option for formatter. 

Why do you need it needed? Consider using Settings(Preferences) | Editor | General | Other | Ensure line feed at file end on Save option.

See also related request: https://youtrack.jetbrains.com/issue/IDEA-119281.

0

Thank you for your answer. Unfortunately, what you described didn't help me, because there is no option for "minimum blank lines after class".

I intentionally didn't want to use "Ensure line feed at file end on Save", because I don't want the IDE to do anything I don't explicitly tell it to (like adding line feed at the end of file). Simple "Save" should save the file, nothing more.

0

Please sign in to leave a comment.