diff --git a/docs/codeql/codeql-for-visual-studio-code/analyzing-your-projects.rst b/docs/codeql/codeql-for-visual-studio-code/analyzing-your-projects.rst index b9a275cfb41..cfd1746499c 100644 --- a/docs/codeql/codeql-for-visual-studio-code/analyzing-your-projects.rst +++ b/docs/codeql/codeql-for-visual-studio-code/analyzing-your-projects.rst @@ -97,6 +97,15 @@ For example, in the following snippet, you could select the predicate name ``foo predicate foo(string s) { s = "bar" } +Running a query on multiple databases +-------------------------------------- + +This is helpful if you want to test your query on multiple codebases, or find a vulnerability in multiple projects. + +#. Open a query (``.ql``) file. +#. Right-click and select **CodeQL: Run Query on Multiple Databases**. +#. From the dropdown menu, select the databases that you want to run the query on. + Viewing previous queries --------------------------