Difference between revisions of "EBC Exercise 06 Setting Up Visual Studio Code"
(Created page with "Category:ECE497 {{YoderHead}} Here's how to install a browser version of [https://code.visualstudio.com/ Visual Studio Code]. == Installing == bone$ '''sudo apt updat...") |
m (Added user-data-dir) |
||
Line 18: | Line 18: | ||
bone$ '''./start.sh''' | 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''' | ||
+ | |||
{{YoderFoot}} | {{YoderFoot}} |
Revision as of 08:25, 5 July 2021
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
Embedded Linux Class by Mark A. Yoder