Eclipse IDE: Add/change default filetypes?

家住魔仙堡 提交于 2019-12-22 03:23:21

问题


When I create a new file in Eclipse, there's a wide selection of different alternatives appearing in Eclipse.

However I am missing a couple of file which I need to open the "file create wizard" to create - JS files included.

How can I add my own file types as a default choice to appear in the "new files" menu?

Screenshot of the menu I am referring to:


回答1:


Puuh - just when I had given up I accidentally found this:

Try this: Right click on Eclipse's toolbar and choose "Customize this perspective" option. You will see a dialog box, and on "Shortcuts" tab choose "New" from "Submenus:" droplist.

Find "PHP" in the left pane and check the checkbox next to it. It will enable both "PHP File" and "PHP Project" in "New" menu of your perspective. You can do the same to other file editors as well. (HTML, CSS,....

http://dev.eclipse.org/newslists/news.eclipse.tools.pdt/msg00228.html




回答2:


Yes, from the Eclipse's toolbar, right click > Customize perspective... > Menu Visibility > File > New > check and uncheck file types.



来源:https://stackoverflow.com/questions/4439798/eclipse-ide-add-change-default-filetypes

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!