Adding files and folders to a project

To add files and folders to a project in the Project Explorer, use any of these options:

Table 1. Adding files and folders to a project
To do this... ... take the following steps:
Drag and drop a file or a folder from the file system
  1. Select a file or a folder in the system window and drag it to the Project Explorer.
  2. Drop the file or the folder to the destination project folder.
Copy and paste a file or a folder from the file system or from the Project Explorer
  1. Select a file or a folder in the system window or in the Project Explorer and copy it to the clipboard using CTRL+C.
  2. In the Project Explorer, select the destination project folder and paste the copied file or folder using CTRL+V. The copied objects are placed inside the selected project folder.
Import files from the file system
  1. Click File > Import on the main menu.
  2. In the Import wizard, go to General > File System. Click Next.
  3. Specify the settings for import:


    Importing files from the file system

    • In the From directory field, browse to the folder where the files for import are located.
    • Flag files for import in the right pane, or flag the parent folder in the left pane to import all included files.
    • Specify the target folder for import in the Into folder field.
    • To import files with their parent folder, select the Create top-level folder option.
  4. Click Finish.
Add a new folder to a project
  1. In the Project Explorer, click the project folder where you need to nest a new folder.
  2. Click File > New > Folder on the main menu.
  3. In the New Folder dialog box, enter the name of the new folder.


    Adding a folder to a project

  4. Click Finish.
Add a new file to a project
  1. In the Project Explorer, click the project folder where you need to add a new file.
  2. On the main menu, click File > New and the option required - Source File, Header File, or File from Template (a TXT file).
  3. In the New File dialog box, point the source (parent) folder where the new file will be added, enter the file name, and select the file template from the list.


    Adding a new file to a project

  4. Click Finish.