Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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

share|improve this question

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


enter image description here

enter image description here

share|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

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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