Sudarshan
Sudarshan

Reputation: 273

Visual C++ setting to insert a newline at end of file

While compiling C++ code that is cross platform, g++ throws a compiler error if a .cpp or .h file does not have a newline at its end. Is there a visual studio setting that would do this automatically?

Upvotes: 2

Views: 1935

Answers (2)

NG.
NG.

Reputation: 22904

You could use a plugin like Visual Assist or something to create code templates that put newlines at the end of your file in addition to niceties like header guards and such.

Upvotes: 2

dirkgently
dirkgently

Reputation: 111130

No. Why not simply leave out a couple of lines at the end when you start working on the file?

Upvotes: -1

Related Questions