Elnur Abdurrakhimov
Elnur Abdurrakhimov

Reputation: 44831

Is there a way to make NetBeans ensure a newline at the end of a file?

I couldn't find this option in the settings, nor could I find a plugin solving this problem. I googled a lot. Maybe I missed something. Does anyone know how to do it?

If it matters, I'm using NetBeans 7.1 Beta.

Upvotes: 6

Views: 1642

Answers (4)

Marcel Pfeiffer
Marcel Pfeiffer

Reputation: 1068

For current versions of NetBeans there is the "No Newline Resolver" plugin that can be installed through the plugin manager or downloaded here:

https://plugins.netbeans.apache.org/catalogue/?id=33

https://github.com/junichi11/netbeans-nonewline-resolver

Configuration can be found at: Options > Miscellaneous > No Newline Resolver

Upvotes: 0

LinusR
LinusR

Reputation: 1209

I found this plugin for Netbeans 8: http://plugins.netbeans.org/plugin/56323/eof-line-feed

Upvotes: 3

Elnur Abdurrakhimov
Elnur Abdurrakhimov

Reputation: 44831

After my own research and lack of any solutions from others, I come to the conclusion that this is impossible.

Upvotes: 1

Daniel Pereira
Daniel Pereira

Reputation: 1785

Sounds like you need to edit your file template to include the newline.

Upvotes: 0

Related Questions