Run an analysis with Visual Studio Code extension
Last updated
Last updated
More information
Snyk privacy policy© 2024 Snyk Limited | All product and company names and logos are trademarks of their respective owners.
Ensure the Snyk extension is configured, authenticated, and trusted for your current project, as described in the authentication and configuration pages.
You can trigger snyk test
using one of these methods:
automatic (default)
manual
Snyk Code and Iac (configuration) scans are triggered automatically when your Project is opened and when any supported files are saved. This behavior can be turned off using an existing configuration.
Snyk Open Source does not automatically run on save by default, but you can enable auto-scan in settings.
Ensure your files are saved before manually running an analysis.
To manually trigger snyk test (see the screen image that follows):
Click the Snyk icon in the sidebar to open the Snyk panel.
Click the Rescan (play) button at the top of the plugin panel.
In the IDE, observe that the extension is already picking up the files and uploading them for analysis.
Snyk Open Source requires the Snyk CLI, so it is downloaded in the background.
Snyk Code analysis runs quickly without the CLI, so results may already be available. Otherwise, you see the following screen while Snyk scans your workspace for vulnerabilities and issues: