Skip to content

Commit d443354

Browse files
committed
Apply feedback and fix syntax
1 parent 4385b31 commit d443354

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

docs/codeql/codeql-for-visual-studio-code/analyzing-your-projects.rst

+2-1
Original file line numberDiff line numberDiff line change
@@ -61,13 +61,14 @@ Creating a custom query
6161

6262
You can generate a query template for a specific language from the queries panel, then write your own code to quickly create a custom query.
6363

64+
#. Optionally, to create a custom query in an existing directory, in the sidebar, click the **Queries** title bar to expand the queries panel, then select the desired directory.
6465
#. In the sidebar, hover over the **Queries** title bar, then click the **Create query** icon.
6566

6667
.. image:: ../images/codeql-for-visual-studio-code/create-query-icon.png
6768
:width: 350
6869
:alt: Screenshot of the queries panel. The "Create query" icon is outlined in dark orange.
6970

70-
#. In the Command Palette, select the target language for your query. Selecting a language will autogenerate a directory labeled `codeql-custom-queries-<language>`, where `<language>` is the name of the selected language. That directory will contain a query template labeled `example.ql`.
71+
#. In the Command Palette, 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.
7172
#. In the template, write your custom query, then save the file. Once your query is finished, you can run it from the queries panel.
7273

7374
Running a query

0 commit comments

Comments
 (0)