Achu
Achu

Reputation: 849

Eclipse is opening all files in another text editor

I installed Eclipse and successfully imported my project. The problem is now when I click on any file, it opens in Geany (the default editor of my Ubuntu). I tried to change the Open with option but get the same result. How do I fix this?

Upvotes: 12

Views: 12413

Answers (2)

Christopher
Christopher

Reputation: 481

I set my File Associations and that was not enough to make double clicking open the correct editor. I also had to add *.jsp as a Text mapping under Content Types. I also had to select each file that had a previous mapping and select Open With... => Default Editor.

After setting 1) the File Association; 2) Content Type and 3) Default Editor for each file, double click opens it in the editor I want.

Upvotes: 0

rgerganov
rgerganov

Reputation: 2232

You can change the associated editor for given file type by navigating to

Preferences -> General -> Editors -> File Associations

Upvotes: 16

Related Questions