Search code examples
c++eclipseeclipse-cdtfile-type

How to set the C++ file extension to .cc in Eclipse for files created when starting a new project?


By default Eclipse (CDT) uses .cpp file extension for C++ files. I would like it to use .cc (and .hh) extensions instead but I cannot find such an option anywhere.

edit: To be precise, it creates a .cpp file when I start a new C++ project. Can this behaviour be changed to creating a .cc file?

I would have expected it under Window > Options > C/C++ > File Types, but as far as I can see that doesn't help. I've searched Google and the only page I found explains how to do it in Netbeans. Any help is greatly appreciated!


Solution

  • Was wondering the same and just found this:

    How to change the default C++ file extension in Eclipse CDT when creating a new file?