Apex Code Runner is a simple, fast and graceful tool for running .apex
scripts within VS Code. This extension executes .apex
scripts and returns cleaner results than the Salesforce Extensions Pack.
NOTES:
- The Salesforce CLI Integration extension included in the Salesforce Extension Pack is required to run Apex Code Runner
- Context menus will only work with files that have a
.apex
extension- The VS Code workspace MUST be a valid Salesforce project with an authenticated user
- The extension is intended for execution of entire
.apex
file contents, NOT selected lines
- Executes Apex code
- Returns CLEAN
System.debug
responses - Returns full debug log in a secondary output
- Output panels refresh with each execution. No more scrolling of repetitive output
Speeds up development by showing only what you want.
The Salesforce CLI Integration extension included in the Salesforce Extension Pack is required to run this extension.
This extension contributes the following settings:
apex-code-runner.logCategoryOptions
: Apex log categories with their associated log levels. These only affect the level of detail in the full log output window.Apex_code
: DebugApex_profiling
: InfoCallout
: InfoDb
: InfoSystem
: DebugValidation
: InfoVisualForce
: InfoWorkflow
: Info
apex-code-runner.preferredWindow
: Output window to display when execution completes. You can view either at any time.userDebug
: (Default) Shows only system.debug statements (and errors)fullLog
: Shows the Full log will show the full log
N/A
Here are some of the projects that were the primary inspiration and templates for this project
- Salesforce Extensions for VS Code
- ForceCode for Visual Studio Code
- SalesforceDX Code Companion
- @salesforce/core
See the CHANGELOG.md for current release notes and changes
Enjoy!