From the Applications View

nRF Connect for VS Code

tags
nRF Connect for VS Code

Complete the following steps in the Applications View:

  1. Locate the application you want to add a build configuration from a preset for.
  2. Click the action Add build configuration.

    Add build configuration

    The page for adding a build configuration opens.
    When you have a CMakePresets.json file in your project, the form features a CMake Preset field. The field has a drop-down menu with the currently available CMake presets. The names of the preset correspond to the displayName field in CMakePresets.json.

    CMake Preset section on the build configuration page

  3. Select one of the preset options.
    The appropriate fields in the form are filled with the values from the preset.

  4. Click Generate and Build.
    This will be Generate if you selected the Generate only checkbox option.