VS Code + ForceCode

Updated 1 year ago by Copado Solutions


In order to configure Visual Studio Code and ForceCode’s IDE to work with the Copado CLI, you need the following elements:

  • Visual Studio Code
  • ForceCode Extension


  1. Make sure you have a .gitignore file in the root of your repository.
  2. Create an empty local folder for the development environment, e.g. Dev01.
  3. Open Visual Studio Code with two extensions already open.
  4. Open the Command Palette and look for ForceCode: Create Project:

  1. Select the Dev01 folder. ForceCode will then ask you for the default org, you can choose an existing org or create a new org:

  1. Select the org type:

  1. You can choose to save to server on local save or use ForceCode to save:
  2. You will notice that ForceCode has created the structure and that there is a src folder which is empty:
  3. Open the Terminal in VS Code and make sure you are in the Dev01 folder.
  4. Clone the repository and execute the following command:
    git clone [repo url] src
  5. In order to be able to use the code completion, open the Command Palette, open the ForceCode menu and execute the Code Completion Refresh:

  1. Select All to generate the faux classes for all objects (you can see the status of this process in the Output tab):

  1. Open the Command Palette and Reload Window.

You are all set to start using the Copado CLI!

How did we do?