Joe
Joe

Reputation: 15321

HTML files are viewed in the browser instead of the Eclipse editor

When I try to view HTML files (e.g. a.xhtml) in my project they are launched in the browser instead of the Eclipse editor.

How should I fix this?

Upvotes: 1

Views: 1585

Answers (1)

Zoltán Ujhelyi
Zoltán Ujhelyi

Reputation: 13858

If you want only to open the file with the Eclipse editor a single time, then right-click the file, and select Open with with the correct editor.

However, if you want to define file associations for Eclipse on a global level, open Preferences, select General/Editors/File associations tab, and assign the corresponding editor the extension (or reorder the already assigned editors).

Upvotes: 2

Related Questions