Set Eclipse as the default editor for opening a file

eclipse

Is it possible to set Eclipse as the default program for open certain types of files? I'd like to set it as the default program for editing .java and .js files.

Best Answer

The normal way of setting a default program to open a certain type of files would work:

Right click a certain .java / .js file (any file of the type you want Eclipse to open by default) -> Open With -> Choose default program -> Choose Eclipse (you may need to browse and find the Eclipse executable file (the launcher)).

Do this for .java and .js files and you're good to go.

Related Question