eclipse - 如何在eclipse中删除文件关联中的锁定

标签 eclipse file locking

在 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.



有什么方法可以删除这些锁,即使认为它可能是黑客的方式,但我想这样做

最佳答案

您无需“解锁”现有关联即可添加新关联并将其设为默认关联。

  • 通过“添加”按钮添加新关联
  • 选择新条目
  • 点击“默认”按钮使您的新条目成为默认编辑器

  • enter image description here

    关于eclipse - 如何在eclipse中删除文件关联中的锁定,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12850756/

    相关文章:

    linux - Eclipse 无法启动,因为 `reload maven project has encountered a p‌r‌o‌b‌l‌e‌m`

    android - Eclipse 中 Android 导入的问题

    Java/Groovy 文件 IO 用图像文件自己的内容替换图像文件 - 为什么这有效?

    c++ - std::lock_guard 可以中断吗?

    java - NetBeans java.lang.ClassNotFoundException

    java - 如何删除启动配置(Eclipse)中的旧项目

    java - FileWriter 使用什么异常

    c - c - 如何在c中比fprintf更快地写入文本文件?

    c# - 如何锁定在多个线程中使用的变量

    ruby-on-rails - 如何确保 Heroku 上的多进程 Unicorn Rails 应用程序中方法的单次运行