You can scan source files using Veracode for VS Code.
To scan a source file with Veracode for VS Code, you must have a scannable file open in the Visual Studio Code editor. Otherwise, the V icon is not visible.
To start a Veracode Greenlight scan:
Click Open Folder from the Visual Studio Code Explorer
Note: To avoid caching issues, do not attempt to initiate a scan of a file that is already open in the editor. Veracode recommends that you close the opened files and always re-open a folder from the activity bar.
- Select a file from the folder.
Choose one of these options to start the scan:
- Click the V icon.
- Use the shortkey, Ctrl+Shift+\.
- Right-click the file and select Scan with
Greenlight from the dropdown menu.
- Open the Command Palette and enter the Scan with Greenlight command.