You need to provide your Google GenAI API Key. You can do this in one of two ways:
Option 1: VS Code Settings (Recommended)
Open VS Code Settings (Ctrl+, or Cmd+,)
Search for "Stike"
Enter your API key in the Stike: Api Key field
Option 2: Environment Variable
Set the GOOGLE_GENAI_API_KEY environment variable:
# Windows (PowerShell)
$env:GOOGLE_GENAI_API_KEY="your-api-key-here"
# Windows (CMD)
set GOOGLE_GENAI_API_KEY=your-api-key-here
# Linux/Mac
export GOOGLE_GENAI_API_KEY=your-api-key-here
Running the Extension Locally
Method 1: Using F5 (Recommended)
Open the extension folder in VS Code:
Open this extension folder in VS Code
Press F5 (or go to Run > Start Debugging)
This will:
Compile the TypeScript code
Launch a new Extension Development Host window
Load your extension in the new window
In the new Extension Development Host window:
Open a workspace folder with code you want to review
Open Command Palette (Ctrl+Shift+P or Cmd+Shift+P)
Type "Review and Fix Code" or "Stike"
Select "Stike: Review and Fix Code"
Choose which folder to review
Confirm when prompted
View Results:
Check the "Stike Code Reviewer" output channel for detailed logs
Files will be automatically fixed
Method 2: Using Watch Mode (For Active Development)
Start watch mode (auto-compiles on file changes):
npm run watch
In another terminal or VS Code, press F5 to launch the extension
Any changes you make to .ts files will automatically recompile
Method 3: Manual Compile
Compile manually:
npm run compile
Press F5 to launch the extension
Usage
Open Command Palette (Ctrl+Shift+P / Cmd+Shift+P)
Type "Review and Fix Code"
Select the folder you want to review
Confirm the review (this will modify files)
Check the output channel for progress and results
Debugging
Set Breakpoints: Click in the gutter next to line numbers in src/extension.ts or src/codeReviewer.ts
View Console: Check the Debug Console in VS Code for console.log output