Links

Run an analysis with Visual Studio Code extension

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:
Snyk scan in progress
Snyk scan in progress
Snyk analysis runs automatically when you open a folder or workspace.
  • Snyk Code performs scans automatically on file saves (can be disabled by setting Scanning Mode to manual).
  • Snyk Infrastructure as Code (Configuration) scans automatically on file saves (can be disabled by setting Scanning Mode to manual).
Set Snyk scanning mode
Set Snyk scanning mode
  • Snyk Open Source does not automatically run on save by default, but you can enable auto scan in settings:
Enable auto scan for Snyk Open Source
Enable auto scan for Snyk Open Source
if you do not like to manually save while working, enable AutoSave.

Rescan

To trigger a scan manually, either Save or manually rescan using the rescan icon:
Rescan icon
Rescan icon
If you need only ,the Code Quality, Code Security, Open Source Security or Configuration portion of the findings, you can disable the feature with the results you do not want to see or collapse the view:
Open Source results open
Open Source results open
© 2023 Snyk Limited | All product and company names and logos are trademarks of their respective owners.