Skip to content

VSCode development environment over SSH for Comma 2

MT edited this page Nov 30, 2022 · 1 revision

The fastest way to modify code directly on the comma 2 device is to setup a ssh connection to the comma 2 and then use the sshfs extension on vscode. image

Setup instructions

  1. Follow instructions to setup a ssh connection to the comma device. Test your connection by running ssh root@<ip_address> in command promt, terminal or powershell, ect.
  2. Install the ssh fs extension in vscode. Its good to setup the IDE extensions that you want for python, c/c++ ect for code highlighting and enable autosave.
  3. Configure the ssh fs extension. See the images below. Or add my settings to your settings.json file under %AppData%\Roaming\Code\User\settings.json (Windows)

"sshfs.configs": [ { "name": "c2", "host": "<your comma ip address", "username": "root", "privateKeyPath": "c:\\Users\\<username>\\.ssh\\id_ed25519", "root": "/data/openpilot/" } ],

image

image

image

image

image

image

image

Then connect

image

Then open as workspace

image

image

Develop!

image

Clone this wiki locally