Is there an equivalent of “Add existing file” (to project) in Eclipse?

前端 未结 8 2099
情深已故
情深已故 2020-12-24 04:51

I am trying to map my Visual Studio experience onto Eclipse. Right now, I wish to add a file existing somewhere on the file system into a project in Eclipse. I expect it to

8条回答
  •  感动是毒
    2020-12-24 05:25

    I am a newbie to Eclipse Luna (the 64 bit latest version on Windows 7) but this worked for me:

    1. Copy the preexisting source files you which add to your project.
    2. In Project Explorer, right click your project and select New > File
    3. In the "New File" dialog box, your project's name / folder should be displayed as the parent folder for your new (existing) source file.
    4. Click on the "Advanced" button at the bottom of the "New File" dialog box.
    5. Check the "Link to file in the file system" checkbox.
    6. Click the "Browse" and browse to your preexisting source.
    7. Click the "Finish" button at the bottom of the dialog box.

提交回复
热议问题