Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » Wrong editor opens on some cpp and hpp files
Wrong editor opens on some cpp and hpp files [message #1013309] Sat, 23 February 2013 09:21 Go to next message
Joost Kraaijeveld is currently offline Joost KraaijeveldFriend
Messages: 273
Registered: July 2009
Senior Member
Hi,

Suddenly some of my cpp and hpp files are opened with the system ascii
editor (gedit) instead of with the Eclipse source editor. Most of the
time it happens when opening files from a search, but it also happens
when I open some files from the C++ project explorer. The icons of those
files are indeed changed to that of an ordinary text file. If I open
such file through "Open with" and chose "text editor" they open in
Eclipse but I have no syntax colouring. I did not change anything to the
file types, and I did not change the editor through "Open with" for
those files.

What can I do to make Eclipse understand that it are real C++ files?

TIA

Joost


Cheers,

Joost
Re: Wrong editor opens on some cpp and hpp files [message #1014155 is a reply to message #1013309] Mon, 25 February 2013 09:18 Go to previous messageGo to next message
Axel Mueller is currently offline Axel MuellerFriend
Messages: 1973
Registered: July 2009
Senior Member
Open Preferences->General->Editors->File associations
Here you can associate a file type with an editor. Perhaps you inserted some of your files here by accident.


Before you ask
- search this forum
- see the FAQ http://wiki.eclipse.org/CDT/User/FAQ
- google
Re: Wrong editor opens on some cpp and hpp files [message #1014327 is a reply to message #1014155] Mon, 25 February 2013 15:42 Go to previous message
Joost Kraaijeveld is currently offline Joost KraaijeveldFriend
Messages: 273
Registered: July 2009
Senior Member
On 25-02-13 10:18, Axel Mueller wrote:
> Open Preferences->General->Editors->File associations
> Here you can associate a file type with an editor. Perhaps you inserted
> some of your files here by accident.

No, I did not do that. Besides that, it happens to *some* hpp or cpp
files, not all.

Joost


Cheers,

Joost
Previous Topic:Problems with system includes after cmake import
Next Topic:C and Java in same workspace with Juno?
Goto Forum:
  


Current Time: Fri Mar 29 08:45:56 GMT 2024

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

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

Back to the top