User Guide

  • 2021.3
  • 06/28/2021
  • Public Content

Environment Configurator Extension

The Environment Configurator for Intel® oneAPI Toolkits extension is a lightweight extension that provides control of the oneAPI development environment and makes it easier to configure oneAPI projects for build, run, and debug.
To install the extension:
  1. Open the Extension Marketplace in VS Code and search for
  2. Install the extension titled
    Environment Configurator for Intel oneAPI Toolkits

Set oneAPI Environment

With this extension, you can set your environment from VS Code:
  1. Press Ctrl+Shift+P ( or View -> Command Palette… ) to open the Command Palette.
  2. Type
    Intel oneAPI
    to view options of the installed extensions.
  3. Click on
    Intel oneAPI: Initialize environment variables
    . If you see a prompt to locate a file, navigate to where your
    script is located:
    • Linux:
    • Windows:
  4. All tasks, launches, and terminals created from VS Code will now contain the oneAPI environment. If you make a new connection such as ssh, repeat the steps above to configure the environment again.
Next, run a sample project locally, over SSH or in a container, or read about the Launch & Intellisense Configurator extension.
When you have completed working on your oneAPI project and want to remove the oneAPI environment, select open the Command Palette again and select
Clear environment variables
. The next time you want to initialize the oneAPI environment you will need to repeat the steps above.

Product and Performance Information


Performance varies by use, configuration and other factors. Learn more at