开发者

creating a new file in eclipse

Is it possible to create, a new file in eclipse 开发者_运维百科without it being part of a project?


It's possible. If you create new file, select General and Untitled Text File.

For convenience, you can also create shortcut for that. I use Ctrl + N, Ctrl + N for that.


Doesn't look like it. This is a huge oversight by the Eclipse people :) What you can do is create a project in the New Project wizard, and then specify the same name as the folder (don't think it matters though). After that, you can create files in that directory using the project.

Another thing you can do is create an empty workspace project and then link to files outside of the workspace (New File Wizard > Advanced.. > Link to file in the file system).

Edit: as hollsk says, it's possible to drag the file in. In the newer versions of Eclipse, this will ask you if you want to make a link or a copy of the file, AFAIK. You can combine this with an empty project as mentioned.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜