Monday, September 18, 2017

How to install Visual Studio Code (VSCode) with Salesforce DX - Sep 2017

In this post, we will see how to install Visual Studio Code (vscode) and install Saleforce DX CLI (SFDX CLI) as an extension in vscode text editor .Salesforce DX Development team has added Syntax highlighting for Apex, Visualforce and Lightning bundle files. Auto complete feature is provided for Apex code, which is based on Apex Language Server.

Salesforce DX is now generally available. Visual Studio code is now officially supported with Salesforce DX instead of Force.com IDE which is not very surprising as it is very challenging to work with the Force.com IDE.

VS code uses Java and a jar file under the hood to provide syntax highlighting and auto completion. So we need to install latest version of Java first.

You also need SFDX CLI installed on your machine to use the Salesforce DX features in VSCode IDE.

Install JDK from Oracle Website and set the JAVA_HOME environment variable.

Download and install vscode from https://code.visualstudio.com/download. The extension name is
"Visual Studio Code Extension Pack for Salesforce DX"

Visual Studio Code Extension can be downloaded from
https://marketplace.visualstudio.com/items?itemName=salesforce.salesforcedx-vscode.

If you have already installed the extension and are facing issue like the command not appearing in the command pallete, uninstall the extension and try reinstalling those.


See and follow the procedure given in this video.

2 comments:

Daniel M. Humbert said...

Oh, thanks for a good advises. Recently I had some error... I could not open the jar file. I couldn't understand why it happened, and tried to find a solution in the interner. And I found a site with the help of which I finally got an open jar file https://wikiext.com/jar.So now I will know what to do in such situations.

David Jones said...

Hi, Great.. Tutorial is just awesome..It is really helpful for a newbie like me.. I am a regular follower of your blog. Really very informative post you shared here. Kindly keep blogging. If anyone wants to become a Java developer learn from Java Training in Chennai. or learn thru Java Online Training from India . Nowadays Java has tons of job opportunities on various vertical industry.

Autoscratcher tool by Mick Wheeler

Mick Wheeler ( http://www.mickwheelz.net ) recently announce on twitter about an interesting tool he created to fetch the source code from ...