How to Execute Anonymously In VS Code?
1. Open Your Project in VS Code.
2. Under Scripts folder, open the default hello.apex file. You can also create a new file with the extension “.apex”.
3. Open the .apex file by clicking it twice.
4. Use SFDX: Execute Anonymous Apex with Editor Contents to execute the apex code developed in it.
5. Execution result will be in the Output panel.
Follow Us