- Open the Command Palette in VS Code by pressing Ctrl+Shift+P (Windows/Linux) / Cmd+Shift+P (macOS).
- Find and select SecureFlag Findings2Training: Open Settings and click it.
- You'll be taken directly to the extension's settings page. Paste your API Access Token into the Findings2training: Api Access Token field.
That's all the setup you need to get started. The extension will begin working automatically from this point on.
Configuring a Proxy (Optional)
If your organization routes internet traffic through a proxy server, you'll need to tell the extension about it so it can reach the SecureFlag API.
- Follow the same steps as above to open SecureFlag Findings2Training: Open Settings.
- Enter your proxy address in the Findings2training: Proxy field.
Note: The URL must begin with http:// or https://. If you're unsure of your proxy address, check with your IT or network team.
If you don't use a proxy, leave this field blank.
Usage
Here's how it works behind the scenes:
- Your security scanner (e.g., Snyk, Semgrep, etc) analyzes your code and raises warnings in VS Code's Problems panel.
- SecureFlag Findings2Training detects those warnings and sends the issue descriptions to the SecureFlag API.
- The API matches each issue to the most relevant training article and practice lab in the SecureFlag library.
- The results appear directly in your editor, as inline Quick Fix suggestions and in a dedicated results panel.
Automatic Analysis
Once you have your API token configured and a security scanner active, the extension runs on its own.
- Whenever security warnings appear or change in your workspace, the extension will pick them up and run an analysis in the background.
- While analysis is in progress, you'll see a small spinner in the bottom status bar.
- When it disappears, the analysis is complete, and the results are ready to use.
If you'd like to run an analysis on demand, you can do so at any time:
- Open the Command Palette (Ctrl+Shift+P / Cmd+Shift+P).
- Find SecureFlag Findings2Training: Analyze Security Problems and click it.
After the analysis finishes, a panel will open beside your editor listing all the security vulnerabilities found in your workspace, along with links to relevant training and practice labs.
If no security issues are detected, a message will confirm that your workspace looks clean.
Using Quick Fixes in the Editor
For every security warning that the extension has matched to training content, you'll see a Quick Fix option appear directly in your code editor.
How to Use it?
- Place your cursor on a line that has a security warning (usually underlined or highlighted by your scanner).
- Press Alt+Enter (Windows/Linux) or Opt+Enter (macOS), or click the lightbulb icon (💡) that appears near the line.
You'll see up to two options from SecureFlag Findings2Training:
| Option | What it does |
| View Training: <Vulnerability Name> | Opens a training article for this specific vulnerability inside VS Code. |
| Practice Lab: <Vulnerability Name> | Opens a hands-on practice lab in your web browser so you can practice fixing this type of issue. |
Tip: If you don't see these options immediately after a new warning appears, wait a moment for the background analysis to complete, then try again.