Developer Guide

FPGA Development for Intel® oneAPI Toolkits with Visual Studio Code on Linux*

ID 767851
Date 3/22/2024
Public

Set the Environment Variables and Launch Visual Studio Code

Perform these steps to set the environment variables:
  1. Open a terminal session.
  2. Locate the setvars.sh or oneapi-vars.sh script. The location depends of your oneAPI installation.

    For more information about the location of the setvars.sh or oneapi-vars.sh script, refer to the following topics:

  3. Run the setvars.sh script from the command line using the following command:
    source <full_path_to_script>/setvars.sh

    For more information, refer to Set Environment Variables for CLI Development.

  4. In the same terminal session, launch Visual Studio Code by running the following command:
    code
    NOTE:

    The benefit of sourcing the oneAPI setvars.sh script before launching VS Code is that all terminal sessions and child processes of VS Code includes the oneAPI development environment setup.