How can I change the file extension that Eclipse uses when it creates source code files, say, from *.cpp to *.cc?

link|improve this question

67% accept rate
feedback

1 Answer

I haven't tried this on the C/C++ version of Eclipse. But I just did it on the Java version and feel the steps will be very similar for you. Here's how I did it.

  1. Go to Window > Preferences > General > Content Types
  2. Find the entry for *.cpp and select that
  3. Click on the Add button under File Associations
  4. Add the new file extension, *.cc
  5. Click OK and you should be good to go

Screenshots

enter image description here

enter image description here

link|improve this answer
Okay, I found it, but *.cc is already there, but by default *.cpp extension is used. Also, order doesn't seem to matter, as *.cpp is about in the middle of the list. – Septagram Sep 8 '11 at 12:21
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.