Configuring an existing project

Once you've created a project, you can configure it using the QNX Toolkit.

Configuring the project

To configure the project:

  1. From the Workspace, right-click the project folder.
  2. Click QNX > Generate .vscode Configuration Files for QNX Project. The QNX Toolkit generates the files necessary to build and run the project.


Configuring projects using tasks

Tasks in Visual Studio Code define a sequence of steps that can help you build, package, and test your projects. You can configure tasks to run the tools or scripts your project uses from VS Code, without having to type them into a command line. Refer to the following link to learn more about tasks: https://code.visualstudio.com/docs/editor/tasks.

To launch a task:

  1. Use Ctrl+Shift+P, which allows you to search your workspace.
  2. Search for and select Tasks: Run Task, then select the task you want to run:

An alternate way to launch a task is to select Terminal > Run Task... from the menu bar, as shown in the image below. Then, select the task you want to run.

You can also configure a default build task that runs when you use Ctrl+Shift+B, to make this process more efficient. To configure tasks:
  1. Use Ctrl+Shift+P, then search for and select Tasks: Configure Task.
  2. Select the task you want to configure. VS Code opens a tasks.json file, in which you can add arguments, environment variables, etc.
Page updated: