Set the default application for specific file types in Eclipse (make “Open with” choice permanent)

This I found it surprisingly hard to Google: I want Eclipse to open Glade files with.. er.. Glade, and I don’t want to right click into Open with... every single time.

What I immediately tried to do was to right-click on the file, go to Properties and I expected to find some Open with... option, you know, like in Ubuntu. At least I hoped to find a link to another menu entry, like there are several spread over Eclipse menus.

The right thing to do instead is to go to Window/Preferences/General/Editors/File associations, pick the extension (or add it, as was my case) and add or edit the “editor” (which can actually be any application, as long as all it takes to open the file with it is to feed it the file name).

The same thing can be done to use Eclipse own editors, say you want to open XML files with a text editor instead of the structured one that Eclipse uses by default..

Advertisements

2 thoughts on “Set the default application for specific file types in Eclipse (make “Open with” choice permanent)

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s