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
Please sign in to leave a comment.
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.
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.
The https://youtrack.jetbrains.com/issue/IDEA-119281 request should address this.