Using Visual Studio Code with Intel oneAPI Toolkits User Guide

User guide for using Visual Studio Code with Intel oneAPI Toolkits, covering local, SSH, WSL, and Docker development, extensions, samples, and debugging.


Using Visual Studio Code with Intel oneAPI Toolkits User Guide - cover page
Brand
Intel
Category
Programming
Document type
User Manual
Language
English
Pages
53
File format
PDF
File size
2.4 MB
Published
08 November, 2026
Updated
08 November, 2026
MD5 checksum
1ACCD563DA308A89B6796985BB12267B

About this manual

This user guide explains how to use Visual Studio Code with Intel oneAPI Toolkits. It covers local development, remote development over SSH, development on Windows Subsystem for Linux, and development in Docker containers, and describes installing oneAPI extensions, browsing samples, configuring the environment, and debugging with gdb-oneapi.

The guide also lists prerequisites such as CMake, Linux C/C++ development tools, the VS Code C/C++ Extension Pack, and at least one installed Intel oneAPI toolkit. It notes supported debugging scenarios and limitations, including that debugging a local Windows host with Visual Studio Code is not supported.

What's inside

  • Using Visual Studio Code with Locally Hosted Intel oneAPI Toolkits
  • Developing a Visual Studio Code Project
  • Using Visual Studio Code with Remote Intel oneAPI Toolkits via SSH
  • Developing a Visual Studio Code Project for SSH Development
  • Developing a Visual Studio Code Project for SSH Development on Windows Subsystem for Linux
  • Using Visual Studio Code with Intel oneAPI Toolkits in a Docker Container
  • Developing a Visual Studio Code Project in a Docker Container
  • Intel oneAPI Extensions for Visual Studio Code
  • Environment Configurator for Intel oneAPI Toolkits
  • GDB GPU Support for Intel oneAPI Toolkits

Specifications

Debugger included in Intel oneAPI Base Toolkitgdb-oneapi, a special version of GNU GDB
Local Linux debugging supportCPU debugging is supported; GPU debugging requires a remote host
Remote Linux debugging supportSupported from a Windows or Linux host using Visual Studio Code
Local Windows debugging supportNot supported using Visual Studio Code
Intel Distribution for GDB Visual Studio Code supportNot currently supported

Frequently asked questions

How do I configure the oneAPI environment in Visual Studio Code?

Open the Command Palette, type Intel oneAPI, and click Intel oneAPI: Initialize environment variables. Then locate the setvars or oneapi-vars file for your installation.

Can I debug a local Windows host with Visual Studio Code?

No. The guide states that debugging a local Windows host using Visual Studio Code is not supported.

What debugger is used for oneAPI C/C++ applications in the guide?

The Intel oneAPI Base Toolkit includes gdb-oneapi, a special version of GNU GDB designed for oneAPI C/C++ applications.

Where is setvars.sh located for root or sudo installations in the component directory layout?

On Linux, setvars.sh is located in /opt/intel/ oneapi/ for root or sudo installations by default.

Download PDF (2.4 MB)

More Intel Manuals


View all Intel manuals →