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

Questions tagged [visualstudiocode]

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.

1
vote
1answer
16 views

How to use VSCode to find which reports are using a specific field

I have used Eclipse in the past but unfortunately, Eclipse and Force.com IDE no longer work for me. I have switched over to VSCode along with the Salesforce DX and forcecode extensions (among many ...
2
votes
1answer
27 views

No sfdx-project.json found in the root directory of your open project. Open a Salesforce DX project in VS Code

I'm using VScode for Apex dev. I have logged into Devhub org. and created a scratch org. when I try to execute pallet command: SFDX: Refresh SObject Definitions I'm getting below error. No sfdx-...
0
votes
2answers
41 views

Use Visual Studio Code to work on Sandboxes and normal Developer Editions plus deploy on Production

I've used eclipse for a lot of purposes. At the beginning to write code and later mostly for deployments. Now I see, that Salesforce is focusing on Visual Studio Code for the future. I love and hate ...
1
vote
0answers
18 views

force:mdapi:convert duplicate files

I've been trying to commit to having version control in our org, and I have been using DX to do so. My biggest complaint right now is that I end up having a ton of .dup files. And I don't know of the ...
1
vote
1answer
30 views

SFDX “Develop Against Any Org” overwrites changes

"Develop Against Any Org in Visual Studio Code" As far as I understand, the feature of VSC SFDX extensions that allows to develop against regular sandboxes, allows only to retrieve and deploy, not ...
0
votes
1answer
26 views

View only DEBUG log entries in Visual Studio Code when using Salesforce DX

When using Visual Studio Code and Salesforce DX palette command: SFDX Get Apex debug logs... To get an Apex Log from the Salesforce servers, how can I then filter the output so I can only see the ...
2
votes
1answer
280 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
29 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?
2
votes
1answer
183 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
216 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
86 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 ...
1
vote
1answer
71 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 ...
8
votes
0answers
143 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
277 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?
-1
votes
1answer
99 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. ...
0
votes
0answers
109 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
449 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?
8
votes
4answers
2k 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
339 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
139 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
349 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 ...
17
votes
3answers
5k 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
1k 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 ...
15
votes
3answers
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 ...