Eclipse: associate an editor with a content type

前端 未结 2 561
野性不改
野性不改 2021-02-15 21:36

Can I change editor associations based on the content type rather than individual file types?

If I go to Window -> Preferences -> General -> Editors ->

2条回答
  •  臣服心动
    2021-02-15 22:07

    Having the same problem: if the editor is choosen by "content-type", you can not change the default editor or add a new one: the content-type screen has no option to edit that.

    But, I discovered that you can configure (all) your extension(s) in your "File Associations". Eclipse will add automatically the editors (based on the Content-Type screen) AND You will then be able to add another editor and/or to change the default used one.

    This is based only on a very short experience, and I didn't find any supporting documentation, but I hope it can help anybody...

提交回复
热议问题