EBC Exercise 06 Setting Up Visual Studio Code

From eLinux.org
Revision as of 08:25, 5 July 2021 by Yoder (talk | contribs) (Added user-data-dir)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search


thumb‎ Embedded Linux Class by Mark A. Yoder


Here's how to install a browser version of Visual Studio Code.

Installing

bone$ sudo apt update
bone$ sudo apt install bb-code-server

Changing port number

VS Code defaults to listening to port 3000, the same port as cloud9. To change the port

bone$ cd /opt/bb-code-server/

and change the 3000 in start.sh to 3001. Then

bone$ ./start.sh

You can also modify start.sh so that it opens with cloud9 examples. Here's my start.sh

#!/bin/bash
/opt/bb-code-server/app/bin/code-server --auth none --disable-telemetry --disable-update-check --user-data-dir /var/lib/cloud9 --config /var/lib/bb-code-server/config/config.yaml --extensions-dir /var/lib/bb-code-server/extensions/ --bind-addr 0.0.0.0:3001




thumb‎ Embedded Linux Class by Mark A. Yoder