Skip to main content
Version: 5.0

Torizon Application Development With Visual Studio Code

Introduction​

Visual Studio Code is a text editor that can be enhanced with extensions to become your custom development environment. Toradex provides the Visual Studio Code Extension for Torizon to make your development life easier.

Resources​

Browse for VS Code on Torizon resources from the tabs below.

Requirements​

  • Toradex Computer on Module with Torizon installed
  • A desktop PC for development with build environment for torizon containers set up.
    • If using Windows, you must have the Windows Subsystem for Linux 2 (WSL2) and Docker Desktop installed and configured.
    • If using Linux, you must have the Docker Engine installed and configured.
      caution

      If using Linux, make sure to have installed the Docker Engine instead of Docker Desktop.

How to Start​

Following our Step-by-step Quickstart Guide for fully supported modules is the easiest way to get you set up in no time.

Alternatively, you can follow the instructions below if you prefer a summarized version. This is only recommended if you have some knowledge of Torizon and VS Code, especially how to use the VS Code command palette.

Installation​

The latest versions of the Toradex Torizon Support extension can be found on the Visual Studio Code marketplace, in two versions:

Click on the Extensions button in Visual Studio Code as shown in the image below and search for Toradex Torizon Support, then select the option you prefer among the ones presented above:

Toradex Torizon Support Extension for Visual Studio Code

Verify that the extension has been enabled:

Torizon extension

Add a Target Device​

Add a target device from either the network or the serial port. In the VS Code command palette, use either of the commands:

  • Network: Torizon: Detect device via network connection
  • Serial Port: Torizon: Detect device via serial port connection

Alternatively, from the VS Code graphical interface:

The board will reboot once you add it.

Create an Application From a Template​

In the VS Code command palette, type torizon create. You will be presented with some options, from which you can choose the programming language you want to work with:

Creating a Torizon Application

You will be prompted with a series of questions to configure your project. See below an example for C/C++, but keep in mind that options vary depending on the programming language:

info

this operation may take some time, especially if you create a new C/C++ project. This is due to the download of the SDK.

Deploy and Debug​

To start the process, all you have to do is press F5. Alternatively, you can select the menu Run and click on Start Debugging. A third method would be to open the command palette and type Debug: Start Debugging.

Additional Resources​

Proceed to the Documentation tab on this page.

Videos and Webinars​

This section has on-demand videos and webinars to help you through development.

Toradex on Twitch - Live Stream: Hello World - Using the Torizon Embedded Linux Distribution​

C# Hello World Blinky on i.MX 8 with TorizonCore Embedded Linux with Visual Studio Code​

Send Feedback!