Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

creating a new file in eclipse

Tags:

eclipse

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

like image 927
mike Avatar asked Jul 21 '10 18:07

mike


2 Answers

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.

like image 125
nanda Avatar answered Sep 18 '22 17:09

nanda


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.

like image 30
Chris Dennett Avatar answered Sep 20 '22 17:09

Chris Dennett