How to create a multi-root VS Code workspace

nRF Connect for VS Code

tags
nRF Connect for VS Code

If a project's code is distributed across several folders, as in the case of an application and library code, you might need a multi-root workspace.

To create a multi-root workspace:

  1. Add new folders using File > Add Folder to Workspace.

    Add Folder to Workspace

  2. Save the multi-root workspace to a .code-workspace file using File > Save Workspace As....

Until saved, the multi-root workspace settings are stored in a temporary file.