Scan and analyze code from Visual Studio Code using CodeQL to write, test, and run queries, explore code structure, and manage databases and packs.
To get started with CodeQL for Visual Studio Code, you need to install and set up the extension.
You can work with CodeQL databases using the extension.
You can run queries on CodeQL databases and view the results in Visual Studio Code.
Detect potential vulnerabilities by running path queries and analyzing your data flow.
You can run CodeQL queries on a large number of repositories on GitHub from Visual Studio Code.
You can view, write, and edit CodeQL model packs in Visual Studio Code.
You can work from a template to write your own code to create a custom query to analyze a specific language.
Download and install dependencies for your CodeQL query and library packs in Visual Studio Code using the CodeQL extension.
Visualize how your code maps to CodeQL classes in VS Code.
You can run unit tests for CodeQL queries using the Visual Studio Code extension.
You can edit the settings for the CodeQL for Visual Studio Code extension to suit your needs.
When you're working with CodeQL, you need access to the standard libraries and queries.
The CodeQL for Visual Studio Code extension uses the CodeQL CLI to compile and run queries.
If you need to troubleshoot problems with CodeQL for Visual Studio Code, there are several logs you can access.
All GitHub docs are open source. See something that's wrong or unclear? Submit a pull request.
Make a contribution