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.
13
questions
12
votes
3
answers
31k
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 ...
18
votes
2
answers
16k
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 ...
1
vote
1
answer
2k
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 ...
1
vote
1
answer
7k
views
Getting an Error on visual studio code
I am getting the below error on visual studio code
The salesforcedx-vscode-apex.java.home setting defined in VS Code
settings points to a missing folder. For information on how to setup
the ...
34
votes
8
answers
44k
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?
15
votes
3
answers
10k
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 ...
8
votes
4
answers
10k
views
No code coverage information was found for test run 7070U00000r8Ny3. Set "salesforcedx-vscode-core.retrieve-test-code-coverage": true
In user setting.JSON I am using
{
"salesforcedx-vscode-apex.java.home":"C:\\Program Files\\Java\\jdk1.8.0_131",
"salesforcedx-vscode-core.show-cli-success-msg": true,
"salesforcedx-...
8
votes
2
answers
7k
views
Lightning Web Component: A required metadata folder named "lwc" does not exist in this workspace
I am trying to perform this(https://trailhead.salesforce.com/content/learn/projects/quick-start-lightning-web-components/create-a-hello-world-lightning-web-component) with VS code and it is throwing ...
5
votes
3
answers
4k
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
3
answers
7k
views
Getting error while retrieving Source from Salesforce Org using VS Code and Salesforce Extension Pack
I am getting this error while trying to fetch(retrieve) source from VS Code and SF Extension Pack.
STR :
Right click on sfdx-project-json -> click on Retreiev Source from Org.
The file is present ...
1
vote
2
answers
7k
views
DeployFailed: Deploy failed. Visual studio code - Deploy to source code failed - SFDX Lightning Component Trailblazer
I tried to do the trailhead module "Create a Hello World Lightning Web Component" and I followed all the steps but when I do deploy to source to org, it fails. The error which I get is: "DeployFailed: ...
0
votes
0
answers
701
views
`sfdx force:apex:log:tail` to only show [USER_DEBUG] logs not working
I'm connected to a Playground org in VS Code.
I have made and deployed a class to this org and would like to run some anonymous code in VS Code to test a method of the class.
I was able to do this by ...
0
votes
1
answer
698
views
invalid element error for <runtimeNamespace>
I am getting an error in xml file while building LWC (want to use with vlocity component) in VS Code.
Please help me to resolve this error.
Here is the xml:
<?xml version="1.0" encoding=&...