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

By default, Eclipse (CDT) uses the .cpp extension for C ++ files. I would like it to use the .cc (and .hh) extensions, but I cannot find such a feature anywhere.

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

I would expect this under Window> Options> C / C ++> File Types, but as far as I can see, this does not help. I searched Google and the only page I found explains how to do this on Netbeans. Any help is much appreciated!

+3
source share
3 answers
+1

Window → Preferences → General → C/++ → . "", .

+3

Look at Window-> Preferences-> General-> Content Types Go to the C ++ source file definition and add file associations.

+2
source

Source: https://habr.com/ru/post/1789739/


All Articles