Developer Guide
FPGA Development for Intel® oneAPI Toolkits with Visual Studio Code on Linux*
ID
767851
Date
3/22/2024
Public
Visible to Intel only — GUID: GUID-DAEACD03-44E8-4C1B-8E94-66A1C61BF191
Set the Environment Variables and Launch Visual Studio Code
Perform these steps to set the environment variables:
- Open a terminal session.
- 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:
- 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.
- 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.