I am using Goland to write my grpc application. After my proto files are generated, no trailing newline is present at the end of the file. Is there a way to enable this in the IDE?
Asked
Active
Viewed 390 times
1
-
3There is no such thing as an "End Of File", other than the actual end of the file. Assuming the files are not infinitely large, what is the problem you are having? – JimB Oct 20 '22 at 19:52
-
I said it wrong. I meant final newline – Andrey Grigorev Oct 20 '22 at 20:20
-
Maybe something from https://stackoverflow.com/questions/16761227/how-to-make-intellij-idea-insert-a-new-line-at-every-end-of-file? – JimB Oct 20 '22 at 20:41
-
PyCharm variant of this @ https://stackoverflow.com/questions/36043061/automatically-add-newline-on-save-in-pycharm (all built on the same base) – Charles Duffy Oct 20 '22 at 20:51
-
IntelliJ version @ https://stackoverflow.com/questions/16761227/how-to-make-intellij-idea-insert-a-new-line-at-every-end-of-file?noredirect=1&lq=1 – Charles Duffy Oct 20 '22 at 20:51
-
@AndreyGrigorev, ...btw, have you considered [edit]ing the question to correct the title? – Charles Duffy Oct 20 '22 at 21:00
1 Answers
5
If you take the time to read the documentation, or explore Goland's settings, you'll discover this under Settings..Editor..General:

Nicholas Carey
- 71,308
- 16
- 93
- 135