I'm using Eclipse CDT Mars.1 (4.5.1) to write some C++ code.
When I type in namespace foo {
, Eclipse completes this with the closing namespace brace, two lines below. Now, I also want a comment on that closing brace, i.e.
namespace foo {
} /* namespace foo */
I know that Eclipse is supposed to add this comment, since I saw it in the preferences - under Window > Preferences > C/C++ > Code Style > Code Templates > Code > End of namespace declaration. It's just not getting used! Why?
PS - If it matters, I'm running Debian Stretch but I downloaded my Eclipse directly from eclipse.org