This product was discontinued in September 2020. Support is available for existing customers until September 2021. It is replaced by a CodeQL extension for Visual Studio Code which is available from the Visual Studio Code marketplace.

CodeQL for Visual Studio help


Welcome to the help for CodeQL for Visual Studio! For an overview of the latest updates in version 1.25, see What's new in this version.

Use the links below, the search box at the top of the page, the contents list or the index page, to find help on using CodeQL for Visual Studio.


CodeQL for Visual Studio is an extension that allows you to write and run CodeQL queries locally in your IDE. These topics explain how to run custom queries on CodeQL databases using the CodeQL for Visual Studio extension.

LGTM for Visual Studio is a separate extension for downloading alerts from LGTM Enterprise, so that you can fix them easily in your IDE. For more information about this extension, see IDE integration for LGTM.

Suggested topics

Here is a selection of help topics you may find useful:

More documentation

For more information about CodeQL and to learn how to write queries, see Learning CodeQL.

Contact GitHub

For questions about CodeQL for Visual Studio, contact GitHub Support.