Set up your IDE
github-learning-lab opened this issue · comments
github-learning-lab commented
Step 2: Setup your environment
We will use the CodeQL extension for Visual Studio Code. You will take advantage of IDE features like auto-complete, contextual help and jump-to-definition.
Don't worry, you'll do this setup only once, and you'll be able to use it for future CodeQL development.
Follow the instructions below.
github-learning-lab commented
⌨️ Activity: Set up
- Install the Visual Studio Code IDE.
- Download and install the CodeQL extension for Visual Studio Code. Full setup instructions are here.
- Set up the starter workspace.
- Important: Don't forget to
git clone --recursive
orgit submodule update --init --remote
, so that you obtain the standard query libraries.
- Important: Don't forget to
- Open the starter workspace: File > Open Workspace > Browse to
vscode-codeql-starter/vscode-codeql-starter.code-workspace
. - Download the esbena_bootstrap-pre-27047_javascript CodeQL database.
- Import the database into Visual Studio Code:
- Click the CodeQL icon in the left sidebar.
- Place your mouse over Databases, and click Choose Database from Archive.
- Select the bootstrap database you just downloaded.
- Clone this course repository on your local machine.
- Add the course repository to your Visual Studio Code starter workspace, by navigating to File > Add Folder to Workspace... If you open this folder you should see several files in there, including
qlpack.yml
andREADME.md
.
Please close this issue now, and continue to the next step.
github-learning-lab commented
Ok, you're done with the setup, moving on!