VS Code + ForceCode
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
- Make sure you have a .gitignore file in the root of your repository.
- Create an empty local folder for the development environment, e.g. Dev01.
- Open Visual Studio Code with two extensions already open.
- Open the Command Palette and look for ForceCode: Create Project:
- Select the Dev01 folder. ForceCode will then ask you for the default org, you can choose an existing org or create a new org:
- Select the org type:
- You can choose to save to server on local save or use ForceCode to save:
- You will notice that ForceCode has created the structure and that there is a src folder which is empty:
- Open the Terminal in VS Code and make sure you are in the Dev01 folder.
- Clone the repository and execute the following command:
git clone [repo url] src
- In order to be able to use the code completion, open the Command Palette, open the ForceCode menu and execute the Code Completion Refresh:
- Select All to generate the faux classes for all objects (you can see the status of this process in the Output tab):
- Open the Command Palette and Reload Window.
You are all set to start using the Copado CLI!