Eclipse IDE:添加/更改默认文件类型? [英] Eclipse IDE: Add/change default filetypes?

查看:211
本文介绍了Eclipse IDE:添加/更改默认文件类型?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我在Eclipse中创建一个新的文件时,在Eclipse中有很多不同的选择。

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

但是我缺少一些我需要的文件打开文件创建向导创建 - 包含JS文件。

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:

推荐答案

Puuh - 只是当我放弃了我不小心发现这个:

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


尝试:右键单击Eclipse的
工具栏,然后选择自定义此
透视图选项。你会看到一个
对话框,在快捷方式选项卡
从子菜单中选择新建
droplist。

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.

在左窗格中查找PHP,并检查
旁边的复选框。
将在
透视图的新建菜单中启用PHP文件和PHP
项目。您也可以对
其他文件编辑器执行相同操作。 (HTML,
CSS,....

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

这篇关于Eclipse IDE:添加/更改默认文件类型?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆