Skip to content
| Marketplace
Sign in
Visual Studio Code>Extension Packs>Salesforce Apex Remote TerminalNew to Visual Studio Code? Get it now.
Salesforce Apex Remote Terminal

Salesforce Apex Remote Terminal

Umberto Piscopo

|
1,393 installs
| (3) | Free
Remote Apex code terminal
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Salesforce Apex Script terminal VS Code

This extension provides a User Interface to run Apex scripts from vscode without access to the org developer console, the code editor is made with ACE Editor Link: https://ace.c9.io/, the editor provide syntax highlighter for Apex language, the extension use the follow DX commands:

1.5.7 - New feature

To delete local or org user logs press the relative button:

newww

Execute or Execute Highlighted

sfdx force:apex:execute -f = execute the code

Open USER_DEBUG only log on Terminal

sfdx force:apex:log:tail --color | grep USER_DEBUG = launch a terminal and show all executed code debug (only user debug)

Open FINEST log on Terminal

sfdx force:apex:log:tail --color = launch a terminal and show all executed code

Open Log checkbox

save the log on the debug\log folder of the Salesforce project

Set DebugLevel

Create or Update a custom DebugLevel with the picklist menu

Prerequisites

Before you set up Apex Script terminal for VS Code, make sure that you have these essentials.

Salesforce Extensions for Visual Studio Code Visual Studio Code v1.59.0 or later

How to use?

To start the extension show command palette and select SFDX Start Apex Terminal: Enter Apex Code

2

Enter your Apex code into the editor and click execute to run all code on the editor or execute Highlighted only for the selected row:

Catturattttttt

To run the script press Execute for the test or Execute Highlighted only for the selected text:

Cattura1111

To run the script and show the log select the checkbox:

Cattura99999

To setup a custom log level use the picklist menu under Logs option and press Set DebugLevel:

Cattura222222

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft