Skip to main content



      Home
Home » Language IDEs » C / C++ IDE (CDT) » Files Extension (*.cpp) not added automatically by Eclipse IDE when they are created.
Files Extension (*.cpp) not added automatically by Eclipse IDE when they are created. [message #1847937] Sun, 14 November 2021 02:04 Go to next message
Eclipse UserFriend
Files Extension (*.cpp) not added automatically by Eclipse IDE when they are created. Source file C++. extension *.cpp. !
Re: Files Extension (*.cpp) not added automatically by Eclipse IDE when they are created. [message #1847939 is a reply to message #1847937] Sun, 14 November 2021 10:13 Go to previous messageGo to next message
Eclipse UserFriend
What do you mean by "not added automatically"?

  • To the filename when created using File->New->Source File?
  • To the project when created using File->New->Source File?
  • To the project when created externally?
  • Something else?

Tell us what you've done and what you expected to happen.

Re: Files Extension (*.cpp) not added automatically by Eclipse IDE when they are created. [message #1847978 is a reply to message #1847939] Mon, 15 November 2021 21:15 Go to previous messageGo to next message
Eclipse UserFriend
When you create C++ Source file, Eclipse IDE failed to append the right extension which is .cpp for LINUX instead it create a default file which you should manually append the .cpp extention to file so Eclipse can recognized it as a source file C++, depsite all options are set well in the Eclipse editor. I am using the Latest version 2021 of Eclipse IDE.

>After create C++ Project
> New > Source file.
> It create Text file but you have to append .cpp to make it C++ source file

[Updated on: Mon, 15 November 2021 21:20] by Moderator

Re: Files Extension (*.cpp) not added automatically by Eclipse IDE when they are created. [message #1847979 is a reply to message #1847978] Mon, 15 November 2021 23:48 Go to previous message
Eclipse UserFriend
I don't think it ever did.
.cpp isn't the only extent possible there's .cxx and .C for instance.
You can edit the templates but I'm not sure if you can edit the
filename with them.

Update
Other extents: https://stackoverflow.com/a/5171821
CDT Help: http://help.eclipse.org/2021-09/topic/org.eclipse.cdt.doc.user/getting_started/cdt_w_newcpp.htm?cp=10_1_4

The help actually tells you to add .cpp yourself
See the help To create a C++ file: Step (2)

[Updated on: Tue, 16 November 2021 21:32] by Moderator

Previous Topic:"No Toolchain found for Target Local" error when using Meson Project
Next Topic:Can't connect to remote host using remote debugging settings
Goto Forum:
  


Current Time: Sat Jul 05 07:32:12 EDT 2025

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

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

Back to the top