From the explorer view in Eclipse, whenever I try to open a .js file, it launches in gedit instead? When I try 'right click > open with > text editor' it opens in eclipse but without any colour recognition for the syntax.
All other files work fine (html, py, css). This is driving me crazy!!
UPDATE These are the packages I have installed at the moment
To run JavaScript program code in Eclipse, right-click on myJavascriptProgram and navigate to New -> Open with -> web browser and click on it as shown below. Eclipse will open the web browser in the editor and display the following output.
Use Eclipse IDE for Web and JavaScript developers! Use Eclipse Wild Web Developer plugin! It just works!
Go to the general preferences of eclipse and search for "file associations". There, ensure that "JavaScript Editor" is set for *.js. After that eclipse should open the js files with this editor and bring code highlighting and stuff like that. Be aware, that those files you opened with 'right click > open with > text editor' might have their own setting and will still open up in Text Editor. Choose there "default" again to remove this local setting for the file.
The JavaScript Editor is included in the plugins you mentioned!
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With