Search code examples
gogoland

Goland does not add newline at end of file


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?


Solution

  • If you take the time to read the documentation, or explore Goland's settings, you'll discover this under Settings..Editor..General:

    Ensure every saved file ends with a line break