

In addition to the error message, the notification includes details of how to fix the problem.įor more information, see “ Troubleshooting CodeQL for Visual Studio Code. If there are any problems running a query, a notification is displayed in the bottom right corner of the application. Create or Sign-In Your Github Account To create an account on Github, go to and follow the steps to create an account. When the results are ready, they’re displayed in the Results view. Got to Code > Preferences Go to Settings Type Git: Enabled in the search bar Make sure that the box is ticked Enable Git in Visual Studio Code 4.

The CodeQL extension runs the query on the current database and reports progress in the bottom right corner of the application. (Alternatively, run the command from the Command Palette.) Right-click in the query window and select CodeQL: Run Query on Selected Database.It is displayed in the editor, with IntelliSense features such as syntax highlighting and autocomplete suggestions. If you have that folder (or a different CodeQL pack) available in your workspace, you can access existing queries under /ql/src/, for example java/ql/src/Likely Bugs.

The CodeQL repository on GitHub contains lots of example queries.
