# Specifying the location of the run configuration

When you create a run configuration, it is saved with the extension `.launch` in `org.eclipse.debug.core`. You can specify an alternate location in which to store your run configuration. You can also specify how you access it and what perspective to open when running an application.

To specify the location of a run configuration:

1. In the C/C++ Projects view, select a project.
2. Click Run > Run or Run > Debug.
3. In the Configurations box, expand C/C++ Local.
4. Click the Common tab.
5. To save `.launch` to a project in your workspace, and to be able to commit it to CVS, click Shared.
6. In the Folder Selection window, select a project, and click OK.
7. To specify which perspective opens when you run, select a perspective from the Run mode list.
8. To specify which perspective opens when you run, select a perspective from the Debug mode list.
9. Click Run, or do the following, as required:
   - To set the environment variables and values to use when an application runs, see Setting environment variables.
   - To select a debugger to use when debugging an application, see Defining debug settings.
   - To specify the location of source files used when debugging a C or C++ application, see Specifying the location of source files.
   - To specify where the run configuration is stored, how you access it, and the perspective to open when running an application, see Selecting a run/debug configuration.

CDT Projects
Project file views

Creating or editing a run configuration

Run and Debug dialog box