Getting Started
This section covers the ways to get started using VS Code with ModusToolbox™ software
Create new application
Creating an application includes several steps, as follows:
Step 1: Open Project Creator tool
The ModusToolbox™ Project Creator tool is used to create applications based on code examples and template applications. The tool is provided in GUI form and as a command line interface. For more details, refer to the
Project Creator user guide
. By default, the tool is installed in the following directory:
<user_home>/ModusToolbox/tools_<version>/project-creator
Open the Project Creator tool as applicable for your operating system. You can launch it from the ModusToolbox™ Dashboard or the VS Code ModusToolbox™ Assistant extension.

Step 2: Choose Board Support Package (BSP)
When the Project Creator tool opens, expand one of the BSP categories under
Kit Name
and select an appropriate kit; see the description for it on the right. For this example, select the
CY8CKIT-062S2-43012 kit
. The following image is an example; the list of boards available in this version will reflect the platforms available for development.

Step 3: Select application
To select an application:
Click
Next >
to open the Select Application page.
This page displays example applications, which demonstrate different features available on the selected BSP. In this case, the CY8CKIT-062S2-43012 provides the PSOC™ 62 MCU and the AIROC™ CYW43012 Wi-Fi & Bluetooth® combo chip. You can create examples for PSOC™ 6 MCU resources such as CAPSENSE™ and QSPI, as well as numerous examples for other capabilities.
Click
Browse…
next to
Application(s) Root Path
to create or specify a folder where the application will be created.
Pull down the
Target IDE
menu and select Microsoft Visual Studio Code.
Under the
Template Application
column, expand
Getting Started
and select
Hello World
from the list. This example exercises the PSOC™ 6 MCU to blink an LED.
Note:
The actual application names available might vary.
Type a name for your application or leave the default name. Do not use spaces in the application name. Also, do not use common illegal characters, such as:
* . " ‘ / \ [ ] : ; | = ,
Step 4: Create application
To create the application:
Click
Create
.
The tool displays various messages.
When the process completes, a message states that the application was created.
Click
Close
to exit the Project Creator tool.
Note:
If you opened the Project Creator tool using the VS Code ModusToolbox Assistant extension, the tool will close automatically upon successful completion.
Export existing application
If you have a ModusToolbox™ application that was created for another IDE or the command line, you can export that application to be used in VS Code. Open a terminal window in the application directory and run the command
make vscode
.
Open workspace in VS Code
In VS Code, select
File > Open Workspace from File
, navigate to the location of the application that was just created, select the workspace file, and click
Open
.

Depending on your settings in VS Code, you may see a message about trusting the authors. If so, click
Yes, I trust the authors
.

VS Code opens with the Hello_World workspace in the EXPLORER view.
