Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » CDT default file extensions
CDT default file extensions [message #227154] Fri, 21 November 2008 16:36 Go to next message
Paul A. Rubin is currently offline Paul A. RubinFriend
Messages: 188
Registered: July 2009
Senior Member
Is there any place in the Eclipse/CDT preferences where I can indicate
that my default choice for a header file extension on a new class is
..hpp rather than .h?

Thanks,
Paul
Re: CDT default file extensions [message #487777 is a reply to message #227154] Thu, 24 September 2009 12:08 Go to previous messageGo to next message
Kristleifur Daðason is currently offline Kristleifur DaðasonFriend
Messages: 1
Registered: September 2009
Junior Member
Bump!

I'd also like to use .hpp as the default.
Re: CDT default file extensions [message #501453 is a reply to message #487777] Wed, 02 December 2009 12:29 Go to previous messageGo to next message
Michael Hamal is currently offline Michael HamalFriend
Messages: 1
Registered: December 2009
Junior Member
did you get an answer for your question about the default header file extension *.hpp?
Greetings Michael
Re: CDT default file extensions [message #501664 is a reply to message #227154] Thu, 03 December 2009 10:44 Go to previous messageGo to next message
Jitendra  is currently offline Jitendra Friend
Messages: 7
Registered: July 2009
Junior Member
Try this

Go to Window-> Preferences-> C/C++ -> File Types

Add new *.hpp as pattern of header file extension

[Updated on: Thu, 03 December 2009 10:46]

Report message to a moderator

Re: CDT default file extensions [message #1007341 is a reply to message #227154] Tue, 05 February 2013 15:12 Go to previous message
Vadim Markovtsev is currently offline Vadim MarkovtsevFriend
Messages: 1
Registered: February 2013
Junior Member
The working solution is to append something like

nameStyle.cpp.source.suffix=.cc

to

<workspace location>/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.cdt.ui.prefs

(see http:// stackoverflow.com/questions/4728531/how-to-change-the-default-c-class-suffix-in-eclipse-cdt/14710510#14710510 for details).
Previous Topic:x through cpp project
Next Topic:How to generate specific tool command based on more than one option
Goto Forum:
  


Current Time: Wed Apr 24 22:35:20 GMT 2024

Powered by FUDForum. Page generated in 0.02916 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top