开发者

Eclipse IDE: Add/change default filetypes?

开发者 https://www.devze.com 2023-01-30 06:38 出处:网络
When I create a new file in Eclipse, there\'s a wide selection of different alternatives appearing in Eclipse.

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

However I am missing开发者_C百科 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:

Eclipse IDE: Add/change default filetypes?


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


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

0

精彩评论

暂无评论...
验证码 换一张
取 消