title | shortTitle | versions | product | topics | type | intro | allowTitleToDifferFromFilename | |||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Installing CodeQL for Visual Studio Code |
Extension installation |
|
{% data reusables.gated-features.codeql %} |
|
reference |
To get started with {% data variables.product.prodname_codeql %} for {% data variables.product.prodname_vscode %}, you need to install and set up the extension. |
true |
The {% data variables.product.prodname_codeql %} extension requires a minimum of {% data variables.product.prodname_vscode %} 1.82.0. Older versions are not supported.
You can install the {% data variables.product.prodname_codeql %} for {% data variables.product.prodname_vscode %} extension using one of several different methods:
-
Using the {% data variables.product.prodname_vscode %} Marketplace in a browser.
-
Searching in the "Extensions" view in {% data variables.product.prodname_vscode %}.
-
Using a VSIX file.
-
In your browser, go to the "{% data variables.product.prodname_codeql %}" page in the {% data variables.product.prodname_vscode %} Marketplace.
-
Click Install, then follow the on-screen prompts.
-
In {% data variables.product.prodname_vscode_shortname %}, open the "Extensions" view.
-
Search for "{% data variables.product.prodname_codeql %}", then click Install.
-
Download the {% data variables.product.prodname_codeql %} VSIX file from the
github/vscode-codeql
repository on {% data variables.product.prodname_dotcom %}. -
In {% data variables.product.prodname_vscode_shortname %}, open the "Extensions" view.
-
At the top right of the sidebar, click the ellipsis then click Install from VSIX....
-
Select the {% data variables.product.prodname_codeql %} VSIX file downloaded in step 1.
-
Follow the on-screen prompts to complete the installation.
To learn how to work with {% data variables.product.prodname_codeql %} databases in the extension, see AUTOTITLE.
If you have already found, downloaded, or created a {% data variables.product.prodname_codeql %} database, you can learn how to use the extension to run queries on {% data variables.product.prodname_codeql %} databases and view the results. For more information, see AUTOTITLE.
To learn how to model additional dependencies of a codebase and improve your {% data variables.product.prodname_code_scanning %} results, see AUTOTITLE.
To learn how to configure access to a different version of the {% data variables.product.prodname_codeql_cli %} than the one installed with the extension, see AUTOTITLE.
To learn how to set up a {% data variables.product.prodname_codeql %} workspace, see AUTOTITLE.