-
Notifications
You must be signed in to change notification settings - Fork 9.1k
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.
Setup instructions
- 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. - 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.
- 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/" } ],
Then connect
Then open as workspace
Develop!
Make driving chill. Buy a comma 3X with a car harness today!