Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to set default editor tab in Eclipse?

I'm using the HTML editor resp. the Structured Text Editor in Eclipse. It always opens in the tab Visual/Source:

Editor tabs

Is it possible to tell Eclipse it should always open this editor in the Source tab?

like image 265
guerda Avatar asked Jul 12 '10 08:07

guerda


People also ask

How do I change the view in Eclipse?

You may switch perspectives by choosing Window, Open Perspective from the main menu, as shown below. Close the Welcome window and you will see the Eclipse user interface. The current perspective is displayed on the title bar.

How do I display tabs in Eclipse?

Check the option " General > Editors > Text Editors > Insert spaces for tabs ": if unchecked, it will display tabs, not space.

What is Eclipse editor?

Eclipse is an integrated development environment (IDE) used in computer programming. It contains a base workspace and an extensible plug-in system for customizing the environment. It is the second-most-popular IDE for Java development, and, until 2016, was the most popular.


1 Answers

You seem to use a plugin which associates with HTML files. For example Eclipse normally loads XML files for the first time with Design tab, and once you switch to source tab, it remembers the next time to open any document associated with XML Editor in Source tab. I don't know remembering is up to Eclipse or up to the plugin associated with the file, but a quick workaround would be:

  1. to right click on the HTML file in package explorer > Open With > choose another editor (e.g. text editor). This only associates with current file. If you want to change file association for all HTMLs:
  2. goto Preferences (under menu Window) > General > Editor > File Associations and change HTML file association there.
like image 181
Mohsen Avatar answered Sep 18 '22 14:09

Mohsen