Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Visual Studio Code is a cross-platform source code editor developed by Microsoft. This tag is for questions regarding the numerous Salesforce plugins that exist for it such as VsForce, ForceCode and MavensMate.

2
votes
1answer
45 views

Apex PMD: Problem: Validate CRUD permission before SOQL/DML operation

Background I am using the Apex PMD plugin for VS Code and it's giving me this problem: Validate CRUD permission before SOQL/DML operation For this line of code: insert contentVersion; Which is ...
1
vote
1answer
22 views

WSDL2Apex for Visual Studio Code & Salesforce DX

Is there a WSDL2Apex extension for Visual Studio Code, which would allow us to use a WSDL Url or file to generate Apex classes in our Visual Studio Code Salesforce DX project?
1
vote
1answer
37 views

How do I get Apex code coverage statistics when using Salesforce DX & Visual Studio Code

I am using Salesforce DX & Visual Studio Code to develop against a sandbox environment. After running an Apex test from Visual Studio Code, how can I view the code coverage from within Visual ...
2
votes
1answer
32 views

SFDX: Deploy Source to Org: Very slow

I am using command: SFDX: Deploy Source to Org To deploy Apex code to a sandbox environment. But often it is taking a very long time (multiple minutes) to respond/complete. QUESTION How can I get ...
4
votes
1answer
24 views

SFDX: Deploy Source to Org: Errors do not appear as Problems in Visual Studio Code

How do I get the errors returned from command: SFDX: Deploy Source to Org To appear in the Visual Studio Code Problem Window? As this would allow us to click on the error and be taken directly to ...
0
votes
1answer
31 views

How to create Salesforce DX project sub-modules using Visual Studio Code / Salesforce DX CLI

I would like to break my project into multiple submodules: project - config - module-1 -- main --- default ---- classes - module-2 -- main --- default ---- classes - etc Is there a Visual Studio ...
6
votes
0answers
56 views

SFDX: ERROR: INVALID_OPERATION: rollbackOnError option must be true on a production org. When using Salesforce DX pre-release and Visual Studio Code

I have a Visual Studio Code project which has beed authorised against a production environment. I am using the Salesforce DX CLI pre-release: sfdx plugins:install salesforcedx@pre-release When I ...
4
votes
1answer
89 views

How to run Apex anonymous code from Visual Studio Code

Is it possible / How would I run a block of Apex anonymous code from Visual Studio Code?
0
votes
1answer
28 views

Apex Language Server Extension not getting activated in Visual studio code - ForceCode: Force Menu

I have made changes to the JSON setting like "salesforcedx-vscode-apex.java.home":"/Program Files/Java/jdk1.8.0_131" but still Force Menu is not getting displayed in the Visual studio code menu. ...
-3
votes
0answers
20 views

How to Set and check Debug Configuration in Visual Studio Code - in Launch.json [duplicate]

Could you please let me know how to set and use debugger in Visual studio code , im facing "apex language server could not provide information about valid breakpoints" Please provide me configuration ...
0
votes
0answers
73 views

VS Code - “vsforce.options.pushOnSave” Not Working With Coveo's vsforce extension

I have set the boolean value to true for both user and workspace settings but still the save does not send to Salesforce. I can deploy the whole package successfully using the "vsforce: deploy package"...
1
vote
0answers
218 views

SFDX force:auth:web:login not working in Visual Studio Code

I am able to open via bash and powershell, but when I use Visual Studio Code's built in terminal it does not work. Anyone else having this problem?
7
votes
3answers
901 views

Format APEX code Visual Studio code

Has anyone been able to find a formatting extension for Apex on visual studio code? And if so would they be able to share it?
0
votes
1answer
207 views

How to Preview a Lightning App in Visual Studio code?

Hi so i'm new to salesforce developement and recently i switched from the developer console to the Visual studio code to develop components there , but the thing is i don't know how to actually ...
4
votes
0answers
102 views

Run Test button/link gives error: command 'sfdx.force.apex.test.class.run.delegate' not found

In Visual Studio Code setup with SFDX links appear above each test method/class that are clickable and presumably would run the appropriate test. However these have never worked for me, I just get ...
0
votes
2answers
184 views

Visual Studio Code - Retrieve Org

I'm a new at a company that does not have their org backed up. I'm trying to get it into github. I'm working with VSC and I added the ForceCode extension but it fails to pull standard objects. Could ...
15
votes
2answers
2k views

Can Visual Studio Code be used as an editor for Salesforce without SalesforceDX?

All the tutorials I have seen referencing the use of Visual Studio Code for Salesforce development imply that it is used in conjunction with SalesforceDX. It is my understanding DX is a relatively ...
8
votes
1answer
814 views

How to enable compile on save on Visual Studio with sfdx-vscode plugin?

How to enable or configure "Salesforce Extensions for VS Code" plugin on Visual studio code IDE to compile my Apex,Visualforce on the scratch org when I save the file locally. I have just started ...
13
votes
2answers
2k views

How can I replace Mavensmate and Sublime Text with something supported?

I was a big fan of Mavensmate and while it is still working I don't like to work with software which is not supported. I find the Salesforce development eco system quite confusing. There seems to be ...
3
votes
2answers
2k views

How do I open a project in Mavensmate using Visual Studio Code?

I'm having trouble getting VS Code to recognize any MavensMate tasks in my initial testings. I definitely have the MM desktop app installed and a working project for it (I've been using MM and ...