tags:

views:

24

answers:

3

I have many types of file in my eclipse workspace, so i want some files to be open in a particular editor. say a war or a jar with winrar. sql with some eql developer, xml,s with xml editor etc how to set that? so that whenever i open them, they should open a assigned editor.

+2  A: 

there is an entry in the eclipse preferences that associates file types with editors. You select your file type (e.g *.html) and assign it one of your installed editors.

On Mac OS, the preference you want is: Preferences -> General -> Editors -> File Associations.

darren
With Darren's approach you can set defaults and add/remove editors. You can also do this individually for files within your project: Right click > Open With...
carwash
+1  A: 

Goto

Window-Preferences

then

General->Editor->fileAssociations navigation

then

select or add the extension in the right top dialog

then click add on the right bottom dialog, select the appropriate application and save :-)

scienty
A: 

You want to add an entry in the Preferences for General->Editors->File Associations.

MatthieuF