Skip to content

Commit 9b17746

Browse files
isaacmbrownCopilot
andauthored
[EDI] Small updates to custom queries article (#59913)
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
1 parent 3f1be10 commit 9b17746

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

content/code-security/how-tos/scan-code-for-vulnerabilities/scan-from-vs-code/creating-a-custom-query.md

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,12 @@ redirect_from:
1515
contentType: how-tos
1616
---
1717

18-
## About custom queries
19-
20-
> [!NOTE]
21-
> Creating a custom query is optional, and the [`github/codeql`](https://github.com/github/codeql) repository contains a large number of example queries you can use instead.
22-
23-
You create a new query file from a template for a given language, which imports the standard libraries for analyzing that language. For more information, see [About {% data variables.product.prodname_codeql %} queries](https://codeql.github.com/docs/writing-codeql-queries/about-codeql-queries/) in the {% data variables.product.prodname_codeql %} documentation.
18+
You can write custom {% data variables.product.prodname_codeql %} queries to find specific issues relevant to your own project. This is optional, and the [`github/codeql`](https://github.com/github/codeql) repository contains a large number of example queries you can use instead.
2419

2520
## Creating a custom query
2621

22+
You create a new query file from a template for a given language, which imports the standard libraries for analyzing that language.
23+
2724
1. In the extension sidebar, open the "Queries" view, then click the **Create query** icon.
2825

2926
1. In the {% data variables.product.prodname_vscode_command_palette_shortname %}, select the target language for your query. If you've chosen not to create your custom query in an existing directory, selecting a language will autogenerate a directory labeled `codeql-custom-queries-LANGUAGE`, where `LANGUAGE` is the name of the selected language. A query template labeled `example.ql` will then be added to the existing or autogenerated directory.
@@ -32,7 +29,7 @@ You create a new query file from a template for a given language, which imports
3229

3330
## Further reading
3431

35-
You can read about how to create queries for supported languages in the {% data variables.product.prodname_codeql %} documentation:
32+
You can read about how to write queries for supported languages in the {% data variables.product.prodname_codeql %} documentation:
3633

3734
* [{% data variables.product.prodname_codeql %} for C and C++](https://codeql.github.com/docs/codeql-language-guides/codeql-for-cpp/)
3835
* [{% data variables.product.prodname_codeql %} for C#](https://codeql.github.com/docs/codeql-language-guides/codeql-for-csharp/)

0 commit comments

Comments
 (0)