How to use local VSCode to work on an instance.
The default code editor for MDOQ development is web based VSCode, which is configured and setup to work as soon as your instance is ready. However if you wish to work with your local version of VSCode, there are a couple of extra steps to connect your machine to VSCode.
Once your instance is ready follow the steps below.
- Enable SFTP for your instance.
- Install the SFTP extension in your VSCode
- Following the documentation from the extension you can enter the following configuration
{
(replacing the brackets values, with values from your instance, these can be found under Settings -> SFTP)
"name": "[INSTANCE NAME]",
"host": "[HOST]",
"protocol": "sftp",
"port": [PORT],
"username": "[USERNAME]",
"password": "[PASSWORD]",
"remotePath": "/home/mdoq/htdocs",
"uploadOnSave": true
},
Once done you can just edit the files in your local VSCode and the extension will automatically sync them to your instance. (There is no need to commit them to get them to your instance)