Reputation: 26428
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.
Upvotes: 2
Views: 307
Reputation: 61715
You want to add an entry in the Preferences for General->Editors->File Associations.
Upvotes: 0
Reputation: 314
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 :-)
Upvotes: 1
Reputation: 15588
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.
Upvotes: 4