在 Eclipse 中,我想更改某些 .htm 文件的默认编辑器。
如果我尝试转到文件关联并关联默认编辑器,则文件将在该新编辑器中打开,但我没有得到语法突出显示。
解决办法是文件关联被某些插件编辑器锁定Preferences -- Context type----text ----Your editor -- reomve the extension
但我得到了 .htm(locked)
所以我不能删除它。
http://help.eclipse.org/juno/index.jsp?topic=%2Forg.eclipse.platform.doc.user%2Freference%2Fref-content-type.htm
Note: Certain items will be marked as "locked". An item is locked if it is one of the associations provided by the plug-in that declares the content type. In other words, you can remove only user-contributed associations.
有什么方法可以删除这些锁,即使认为它可能是黑客的方式,但我想这样做
最佳答案
您无需“解锁”现有关联即可添加新关联并将其设为默认关联。
关于eclipse - 如何在eclipse中删除文件关联中的锁定,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12850756/