You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+12-2Lines changed: 12 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,10 +8,20 @@ Everything you do here is contained within this one codespace. There is no repos
8
8
9
9
We've set up a code tour to help you get familiar with a CodeQL project and how to run queries. To run the code tour:
10
10
11
-
1. In your codespace, at the bottom of the File Explorer, expand **Code Tour**.
11
+
1. In your codespace, at the bottom of the File Explorer, expand **CODETOUR**.
12
12
1. Expand the **CodeQL tutorial**, then click **#1**.
13
-
1. In the Editor, follow along with the tutorial, and press **Next** when you're ready to move on to the next step.
13
+
1. In the resulting pop up in the Editor, follow along with the tutorial, and press **Next** when you're ready to move on to the next step.
14
+
15
+
Once you've finished the code tour, you can continue to explore the CodeQL template we've set up for you!
14
16
15
17
## Running custom queries
16
18
19
+
You can use this template to write and run your own CodeQL queries.
20
+
21
+
1. Create your own `.ql` file, or use an existing `.ql` file to write CodeQL queries.
22
+
1. Once you've written your queries, right-click within a .ql query file, and click **CodeQL: Run Query**, or
23
+
1. Open the Command Palette with `Cmd/Ctrl + Shift + P`, start typing CodeQL, and click on **CodeQL: Run Query**.
24
+
25
+
## Querying an existing codebase
17
26
27
+
If you would like to use CodeQL to analyze your own projects, you can follow the instructions in [Setting up CodeQL in Visual Studio Code](https://codeql.github.com/docs/codeql-for-visual-studio-code/setting-up-codeql-in-visual-studio-code/) to set up your own CodeQL environment.
0 commit comments