I want to use Eclipse as my editor for HTML/Javascript files. When I "Run", I would like to see a browser (any one of Internet Explorer, Firefox, etc on Windows) launched for my file. How can I set up a 'run configuration' to do this?
With this set of good old features added to a more powerful and nicer edition and debug of Web files, the Eclipse IDE now shine again as a great ready-to-use IDE for Web and JavaScript development. It can now be considered for many use-cases by Web or Node. js developer as a viable or better alternative to other IDEs.
Go to the Outline view. If it is not displayed, go to Window | Show View | Outline. on the Outline view's toolbar and select html. HTML and JavaScript objects contained within the file will be displayed in a tree view.
You could set up an External Tool configuration that, when you run it, would open, in a browser, the document you're currently editing. Instead of "Run", you'd click the button next to the Run button, with the little red suitcase over it.
To set it up, use the menus: Run...External Tools...External Tools Configurations. You'll get a configuration dialog. Now:
Running an External Tool Configuration is a lot like running a Launch Configuration: you can choose from the menus, or use the buttons on the button bar; if you click one of those buttons, it will run the last configuration you selected (on whatever document you're editing).
The important things to note are:
See these docs for more detail.
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