Skip to content

How to work with multiple applications

The extension lets you work with multiple applications without the need for a multi-root workspace. You can see the list of applications associated with the current workspace in the Applications View.

In the Applications View, the currently active application has its name highlighted. By default, the active application and its active configuration changes with every file you open or edit in the active editor window, if the file is in an application's directory or belongs to a build directory. You can change this behavior in the nrf-connect.activeAppFollowActiveEditor configuration setting.


We do not recommend adding multiple workspace applications to the same VS Code workspace.

All freestanding applications added to the VS Code workspace will use the same nRF Connect SDK version.

How to add multiple applications

You can add additional applications to the list using the following actions:

  • Open an existing application from the Welcome View.
  • Create a new application from the Welcome View.
    This option adds the application to the VS Code workspace.
  • Click on the plus sign icon in the Applications View.

    Add an application with the plus sign icon

  • Right-click on an application's folder and chose nRF Connect: Add Folder As Application in the Explorer (Ctrl-Shift-E).

    Add an application from the context menu

  • Select File > Add Folder to Workspace from the main VS Code interface.

    Add an application from the file menu

How to recover unsaved applications

If you have made changes to your application without saving the workspace settings, these changes can be restored.

VS Code will never remove any of the build configurations on its own. However, as the list of applications in your workspace is stored in the workspace settings, VS Code will lose track of them if you exit without saving. When you reopen the unsaved workspace, your application and build configurations will not appear in the Sidebar.

To restore an application:

  1. Create a new workspace.
  2. In the Welcome View, click on Open an existing application.
  3. Choose the folder where your application is stored.

The application will reappear in the Applications View.

How to remove applications

The extension will never remove the application files from your machine.

You can remove the application using one or both of the following actions:

  • Remove Application action from the Applications View to remove the application only from the nrf-connect.applications setting. If the application is also listed in the workspace root folder list, it will not disappear from the Applications View list, but the Remove Application button will become unavailable.
  • Remove Folder from Workspace action in the Explorer (Ctrl-Shift-E) to remove the applications from the the Applications View and from the workspace root, if it is also present in the workspace root folder list. (This also applies to applications previously removed from the nrf-connect.applications setting that are still listed in the View.)