This method will create a new filewithoutadding it to a project. There is a different method tocreate a file in a project directly.
1
Select a location to create a file.
In theFiles window, select the directory where you want the file to be created. Your only options are the project's base directory or one of its subdirectories. If multiple projects are open in the IDE, you can choose to create the file in any of their directories or subdirectories.
2
Launch theNew File wizard.
Right click on the folder where you want the file to be created and selectNew > FileType… from the popup menu, where FileType is the kind of file you wish to create. Skip to step 4.
If no file types are listed in the popup menu or the kind you want isn't shown, selectNew > Other… and go to step 3.
3
Choose the file type.
a
Choose theProject into which you wish to add the file. If you selected a folder in step 1, this should already be set for you. This will only create the file in the project's directory - it will not be added to the project in theProjects window.
b
Choose one of theCategories of files you can create.
c
Choose one of theFile Types you wish to create.
4
Provide the name and choose/verify the location.
a
Name your file in theFile Name field.
b
Choose anExtension (e.g. c, cpp, etc.). In general, this should be set automatically to the correct extension based on the file type you created.
c
Choose aLocation orFolder where the file should be created. If you selected a folder in step 1, this should already be set for you.
- In theLocation combo box, choose the physical location where you want the file saved. In general, the only option will be the project folder (HelloWorld in this example). However, if you have added any existing files or folders to the project that are not in your project directory, you can also select one of those locations to store the new file.

- Optionally, select a subdirectory of the Location by clicking on theBrowse… button next to theFolder combo box and picking a directory. TheCreated File item will show the full path for the new file to help you verify that you have chosen the options above correclty.
d
Click theFinish button.
5
You should now see the new file in theFiles window under the directory you selected in step 1. You may at any timeadd the file to a project if you wish.






