This section describes how to work with ModusToolbox™ applications without the extension's graphical interface, using the ModusToolbox™ command line tools and standard VS Code features such as tasks and launch configurations. These workflows also apply when you prefer to drive ModusToolbox™ manually or to script your build, program, and debug steps.
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. Use the Open Folder command and point to the application directory containing the application Makefile.
Open a ModusToolbox™ Shell terminal in the application directory and run the
command make vscode. This will add VS Code specific files,
including the workspace file, that will make the application compatible with VS Code.
Open workspace in VS Code



Add/modify application code
Code example applications work as they are, and there is no need to add or modify code in order to build or program them. However, if you want to update and change the application to do something else, open the appropriate file in the code editor.


Command line

This section covers a few of the tools you might open more frequently. For a complete list of the tools available, refer to the ModusToolbox™ tools package user guide.
Library Manager
To add, remove, or modify libraries, open the Library Manager using the following command:
make library-manager
Refer to the Library Manager user guide for details about that tool.
BSP Assistant
To create or modify a BSP, open the BSP Assistant using the following command:
make bsp-assistant
Refer to the BSP Assistant user guide for details about that tool.
Device Configrator
To view peripherals, pins, clocks, etc., open the Device Configurator using the following command:
make device-configurator

Build the Application
Building the application is not specifically required, because building will be performed as part of the programming and debugging process. However, if you are running VS Code without any hardware attached you may wish to build your application to ensure all the code is correct.


