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.
-
I can open the file in Eclipse on Ubuntu using this command: eclipse (path of file I'm trying to open)– Anderson GreenJul 29, 2012 at 1:08
-
Further information on this topic is available here: google.com/…– Anderson GreenJul 29, 2012 at 1:09
-
This tutorial explains how to do this on Mac OS X: bewarethepenguin.blogspot.com/2010/08/…– Anderson GreenJul 29, 2012 at 1:13
2 Answers
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.
-
Is this specific to a certain type of operating system, or does it apply to all operating systems? Jul 29, 2012 at 0:13
-
Also, where is the Eclipse executable usually located on Windows? Jul 29, 2012 at 0:15
-
This is specific for Windows (all versions). As for Linux, the "Open with" option should be in the Properties tab after you right-click a certain file. As for the Eclipse executable file (the launcher), I suggest you search your computer for "eclipse.exe", as its location depends on where you saved the Eclipse download package to. Jul 29, 2012 at 0:17
-
On Linux (Ubuntu 12.04), Eclipse doesn't even show up under the list of installed applications. Jul 29, 2012 at 0:20
-
I think the reason why it doesn't show up under the list of installed applications is because Eclipse is not installed - when I installed the latest version of Eclipse few weeks ago, it was downloaded as a .zip file and all I needed to do was unzip it and I was able to use Eclipse. The folder it was unzipped to is the folder where the Eclipse launcher is located in my computer, and no installation was ever required. Jul 29, 2012 at 0:26
Install this plugin on eclipse : https://marketplace.eclipse.org/content/default-text-editor
-
3According to the description at the site, this does the opposite of what was requested. The question asks to define it specifically for .java and .js files. Your plug-in is for any text files that do not have an assigned default editor. But in general, please see meta.superuser.com/questions/5329/… for guidance on recommending software. Aug 19, 2015 at 9:26