Skip to main content

Getting started with the CodeQL for Visual Studio Code extension

The CodeQL extension for Visual Studio Code makes it easy to run a query to find problems in codebases.

Who can use this feature?

CodeQL is available for the following repository types:

About CodeQL for VS Code

You can write, run, and test CodeQL queries inside Visual Studio Code with the CodeQL extension.

Installing CodeQL for Visual Studio Code

To get started with CodeQL for Visual Studio Code, you need to install and set up the extension.

Managing CodeQL databases

You can work with CodeQL databases using the extension.

Running CodeQL queries

You can run queries on CodeQL databases and view the results in Visual Studio Code.

Exploring data flow with path queries

You can run CodeQL queries in Visual Studio Code to help you track the flow of data through a program, highlighting areas that are potential security vulnerabilities.

Running CodeQL queries at scale with multi-repository variant analysis

You can run CodeQL queries on a large number of repositories on GitHub from Visual Studio Code.