Explore the VS Code Extension#
Silabs Quick Access#
This view provides quick access to main extension functionalities from the default VS Code Explorer view.
Silabs quick access view.
Shortcut to extension walkthrough on how to get started with the extension.
Refresh view.
Show more options.
Show more actions:
Welcome content, which is the same as the Walkthrough.
Shortcut to extension's settings.
Show external links to docs.silabs.com.
After opening a compatible project folder. (Simplicity Studio generated project is considered compatible, if its generator list contains "Visual Studio Code").
Opened project.
Build.
If multiple build configurations are present for a given project, before building, you will be asked to select one build configuration. If a build is a success, and binary files were generated, the configuration will be displayed under the project.
Shortcut to Build Configurator. For more information, check the corresponding section of this document.
Successfully built configuration under the project.
Expand the configuration.
Flash.
Before Flash is executed, you will be asked to choose a binary file to flash. This can be: .hex, .bin, or .rsp. For binaries that do not contain address information, for example .bin, you should add a starting memory address as well.
In case multiple compatible devices [see settings: Board display] are connected, choose one.
Debug.
If multiple compatible devices [see settings: Board display] are connected, choose one.
Successful start of the debug section will navigate you to the "Run and Debug" view.
When Debug is launched, a "launch.json" file will be created/updated in the ".vscode" folder with information about the Silabs debug session. If you have your own launch.json file and want to keep it, the corresponding setting should be turned off [Overwrite launch file].
Status Bar#
Once a file from opened project is selected in VS Code explorer, shortcuts to build, flash and debug are displayed in the status bar. With the project name that contains the selected file.
File selected in Explorer.
Shortcuts to build, flash and debug.
These can be initiated by one or more additional input steps depending on the number of opened projects and the number of connected devices.
Workspace#
The following describes the Silicon Labs Workspace within VS Code.
Silicon Labs view.
Shortcut to extension walkthrough on how to get started with the extension.
Refresh workspace.
Connect to Simplicity Studio Workspace.
Shortcut to extension's settings.
Connecting and selecting previous workspaces:
Connect to Simplicity Studio Workspace.
Previously connected workspaces.
Selecting one will automatically load the folder content into the workspace view.
List can be edited under settings [V5 workspaces].
Important: Only projects and solution generated with "Visual Studio Code" generator will be displayed.
Browse button to browse folders for a new workspace.
Selecting one will automatically load the folder content into the workspace view
Workspace details:
Badge in the left rail.
Number shows how many "notifications" are waiting.
These are listed in the tooltip when you hover over the Si icon.
Tooltip displaying if the workspace had changes.
Refresh to update the Workspace content.
For a displayed project, the following actions are available:
Build.
If multiple build configurations are present for a given project, before building, you will be asked to select one build configuration.
Flash.
Before Flash is executed, you will be asked to choose a binary file to flash. This can be: .hex, .bin, or .rsp. For binaries that do not contain address information, for example .bin, you should add a starting memory address as well.
In case multiple compatible devices [see settings: Board display] are connected, you should choose one.
Debug.
In case multiple compatible devices [see settings: Board display] are connected, you should choose one.
Successful start of the debug section will navigate you to the Run and Debug view.
When Debug is launched, a launch.json file is created/updated in the .vscode folder with information about the Silicon Labs debug session. If you have your own launch.json file and want to keep it, the corresponding setting should be turned off [Overwrite launch file].
Shortcut to 04-Build-Configurator#build-configurator. For more information, check the corresponding section of this document.
For a displayed solution the following actions are available:
Build.
In this version only, one build configuration is available for solution.
Flash.
Before Flash is executed, you will be asked to choose a binary file to flash.
In case multiple compatible devices [see settings: Board display] are connected, you should choose one.
Debug.
In case multiple compatible devices [see settings: Board display] are connected, you should choose one.
Successful start of the debug section will navigate you to the Run and Debug view.
When Debug is launched, a launch.json file is be created/updated in the .vscode folder with information about the Silicon Labs debug session. If you have your own launch.json file and want to keep it, the corresponding setting should be turned off [Overwrite launch file].
Right click on folder brings up a context menu with the following actions:
Add new file or folder to the selected folder.
When you choose this, an additional input dialog is displayed.
If text input contains a file extension, a file will be created; otherwise a folder will be added.
Folder or file cannot be added to the top level folder of a solution
Rename selected folder.
Projects and solutions cannot be renamed only in Simplicity Studio.
Sub-projects of a solutions can only be renamed in Simplicity Studio.
Renaming a Simplicity Studio generated folder may cause the project to malfunction.
Delete selected folder.
Projects and solutions can only be deleted in Simplicity Studio.
Sub-projects of a solutions can only be deleted in Simplicity Studio.
Deleting a Simplicity Studio generated folder may cause the project to malfunction.
Right click a file to open a context menu with the following actions:
Rename selected file.
Renaming a Simplicity Studio generated file may cause the project to malfunction.
Delete selected file.
Deleting a Simplicity Studio generated file may cause the project to malfunction.
Some configuration files that have a configurator in Simplicity Studio have this optional action. Selecting this action will open the selected configuration file in its own configurator.
Show the selected file in VSC Explorer by moving the focus to the selected file in the VSC Explorer view.