tags:

views:

39

answers:

2

Is it possible to create, a new file in eclipse without it being part of a project?

+1  A: 

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.

Chris Dennett
Agreed - it's a major annoyance :/ You can also, however, create a new file in any directory and then physically drag the thing into Eclipse for editing. It'd still be nice to just go to File -> New and make a new one, though :[
hollsk
+1  A: 

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.

nanda