如何在 Eclipse 中禁用 JBoss 工具编辑器?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/13308325/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
How to disable JBoss Tools editors in Eclipse?
提问by Thomas Zuberbühler
I do have the problem that all my files are opened by default with a relevant JBoss Tools editor. Unfortunately they are slow on my machine and not always useful if I just want to edit a single tag in a XML file or so.
我确实遇到了问题,默认情况下我的所有文件都使用相关的 JBoss 工具编辑器打开。不幸的是,它们在我的机器上很慢,如果我只想编辑 XML 文件中的单个标签,它们并不总是有用。
If possible I don't want to uninstall the JBoss Tools since it might be useful sometimes. But I want to open my files with a built-in editor by default.
如果可能,我不想卸载 JBoss 工具,因为它有时可能很有用。但我想默认使用内置编辑器打开我的文件。
Here's my question:How to disable JBoss Tools editors and set built-in editors as my Eclipse's default editors? How to disable JBoss Tools editors for content related file associations?
这是我的问题:如何禁用 JBoss 工具编辑器并将内置编辑器设置为 Eclipse 的默认编辑器?如何为内容相关的文件关联禁用 JBoss 工具编辑器?
Thank you. :-)
谢谢你。:-)
Kind of duplicated with:
与以下内容重复的类型:
回答by kostja
You can set the editor that will open a file per default in the
您可以设置默认情况下将打开文件的编辑器
Preferences->Editors->FileAssociationsmenu.
首选项-> 编辑器-> 文件关联菜单。
Select one of the associated editors and press the defaultbutton.
选择关联的编辑器之一,然后按默认按钮。
EDIT: You can refine the file associations. To change the association for the web.xml
file, got to the same file associations menu and click addin the upper right corner. Type web.xml
and press OK, then edit the associated editors.
编辑:您可以优化文件关联。要更改web.xml
文件的关联,请转到相同的文件关联菜单,然后单击右上角的添加。键入web.xml
并按OK,然后编辑相关的编辑器。
EDIT2:
编辑2:
Unfortunately, there is no setting for associating editors with content types directly. Content type menu is mainly for setting default encodings. The editor associations are relayed by the file associations.
不幸的是,没有将编辑器与内容类型直接关联的设置。内容类型菜单主要用于设置默认编码。编辑器关联由文件关联中继。
You can associate file extensions or full file names with editors. Wildcards are restricted, so you cannot associate an editor with all .x*ml
files.
您可以将文件扩展名或完整文件名与编辑器相关联。通配符受到限制,因此您无法将编辑器与所有.x*ml
文件关联。
If you are OK with making several changes, here are the exemplary steps to open all .xhtml
files with the built-in web page editor (tried and working in my 3.7): in the file associations menu, click the .xhtml
item, then select the editor of your choice in the list below and click on the defaultbutton on the right-hand side. From now on a double-click on an .xhtml
file will open it in the built-in editor instead of the JBoss Tools.
如果您可以进行一些更改,以下是.xhtml
使用内置网页编辑器打开所有文件的示例性步骤(在我的 3.7 中尝试并工作):在文件关联菜单中,单击该.xhtml
项目,然后选择以下编辑器您在下面的列表中进行选择,然后单击右侧的默认按钮。从现在开始,双击.xhtml
文件将在内置编辑器而不是 JBoss 工具中打开它。
回答by Claudio Miranda
You can use "source" tab as the default, when opening xhtml files.
打开 xhtml 文件时,您可以默认使用“源”选项卡。
Preferences -> JBoss Tools -> Web -> Editors
首选项 -> JBoss 工具 -> Web -> 编辑器
Mark only the "Use source tab as default" option.
仅标记“默认使用源选项卡”选项。