Eclipse: associate an editor with a content type

前端 未结 2 2060
不知归路
不知归路 2021-02-15 21:31

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:27

    The only way I found to do that is by installing a plugin into your install that has the editor-to-content-type binding. In this example, I make Gedit available for the text content type:

    
       
          
       
    
    

    See http://help.eclipse.org/helios/index.jsp?topic=/org.eclipse.platform.doc.isv/reference/extension-points/org_eclipse_ui_editors.html for more details.

提交回复
热议问题