You can enable auto-scan to have Veracode Greenlight automatically scan any file that is in focus in your IDE as soon a you save it, as long as the file compiles successfully.
You can use the Greenlight auto-scan feature to automate security scanning. Scans that you start manually take precedence over auto-scans. When a scan is ongoing, Greenlight adds newly saved files to a queue in the order that you save them. Greenlight does not start a new auto-scan when another scan is running, whether it is an auto-scan or one that you started. If you save multiple files at the same time, or save a new file before the existing queue is emptied, Greenlight adds the files to the queue.
To verify if the auto-scan feature is active for your account, go to Veracode
Greenlight and check if Auto-Scan is enabled.