Open an existing EOS Smart Contract repo created using the VSCode New EOS Contract repository.
- VSCode installed on your development PC
- Remote - Containers VSCode extension has been installed
- You've previously created an EOS Smart Contract using the VSCode New EOS Contract repository, and pushed it to github.
- Clone this repo into a new directory with the name of your project (Directory naming restrictions:
[a-zA-Z0-9][a-zA-Z0-9_.-]
) - Open in VSCode
- Modify the .devcontainer file according to the instructions at the top of the file (Insert the target github account and repository name)
- Run the
Remote-Containers: Rebuild and Reopen in Container
command in VSCode
VSCode will relaunch, connecting to a new docker container that has already cloned the targeted smart contract from github.
When VSCode closes, the container stops. The data within the container is not accessible, as it's stored in an unnamed volume mounted on your PC, only accessible through the docker container launched by VSCode. All changes made within the container will persist on that PC (as long as you don't delete the docker volume), and must be pushed to a git repository if you want to work on it on another PC.