GuruKulki
GuruKulki

Reputation: 26428

how to make a file to open in a particular editor in eclipse?

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

Answers (3)

Matthew Farwell
Matthew Farwell

Reputation: 61715

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

Upvotes: 0

scienty
scienty

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

D.C.
D.C.

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

Related Questions