简体   繁体   English

如何在Eclipse中禁用JBoss Tools编辑器?

[英]How to disable JBoss Tools editors in Eclipse?

I do have the problem that all my files are opened by default with a relevant JBoss Tools editor. 我确实有一个问题,默认情况下使用相关的JBoss Tools编辑器打开我的所有文件。 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. 不幸的是,如果我只想在XML文件中编辑单个标签,那么它们在我的机器上运行速度很慢并且并不总是有用。

If possible I don't want to uninstall the JBoss Tools since it might be useful sometimes. 如果可能的话,我不想卸载JBoss Tools,因为它有时可能很有用。 But I want to open my files with a built-in editor by default. 但是我想默认使用内置编辑器打开我的文件。

Here's my question: How to disable JBoss Tools editors and set built-in editors as my Eclipse's default editors? 这是我的问题:如何禁用JBoss Tools编辑器并将内置编辑器设置为Eclipse的默认编辑器? How to disable JBoss Tools editors for content related file associations ? 如何禁用JBoss Tools编辑器以获取与内容相关的文件关联

Thank you. 谢谢。 :-) :-)


Kind of duplicated with: 有点复制:

You can set the editor that will open a file per default in the 您可以设置将在默认情况下打开文件的编辑器

Preferences->Editors->FileAssociations menu. 首选项 - >编辑器 - > FileAssociations菜单。

Select one of the associated editors and press the default button. 选择一个关联的编辑器,然后按默认按钮。

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 add in the upper right corner. 要更改web.xml文件的关联,请转到相同的文件关联菜单,然后单击右上角的添加 Type web.xml and press OK , then edit the associated editors. 键入web.xml并按“ 确定” ,然后编辑关联的编辑器。

EDIT2: EDIT2:

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 default button on the right-hand side. 如果您可以进行多项更改,以下是使用内置网页编辑器打开所有.xhtml文件的示例性步骤(在我的3.7中尝试并使用):在文件关联菜单中,单击.xhtml项,然后在下面的列表中选择您选择的编辑器,然后单击右侧的默认按钮。 From now on a double-click on an .xhtml file will open it in the built-in editor instead of the JBoss Tools. 从现在开始,双击.xhtml文件将在内置编辑器而不是JBoss Tools中打开它。

You can use "source" tab as the default, when opening xhtml files. 打开xhtml文件时,可以使用“source”选项卡作为默认选项卡。

Preferences -> JBoss Tools -> Web -> Editors 首选项 - > JBoss工具 - > Web - >编辑器

Mark only the "Use source tab as default" option. 仅标记“使用源选项卡作为默认值”选项。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM