Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
student:vscode:start [2021/09/21 11:44] – created doongs | student:vscode:start [2022/09/05 13:18] (current) – removed mckeanbs | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ===== Using VSCode Remotely on Stu for C (Windows) ===== | ||
- | VSCode has extensions for C/C++ Intellisense; | ||
- | |||
- | ==== Prerequisites ==== | ||
- | - Do //**not**// use the Remote SSH Extension for VSCode to access stu as this creates extra processes on stu. | ||
- | - Install [[https:// | ||
- | - (Optional) Install the new [[https:// | ||
- | |||
- | ==== In WSL ==== | ||
- | - Start Ubuntu from its CLI or the Windows Terminal, username and password can be anything | ||
- | - Run sudo add-apt-repository universe (may already be enabled) | ||
- | - Run sudo apt update && sudo apt upgrade | ||
- | - Run sudo apt install gcc | ||
- | - Mount your stu directory remotely **//from within WSL//** according to [[student: | ||
- | | ||
- | ==== In VSCode ==== | ||
- | - Start VS Code. | ||
- | - Press F1, select Remote-WSL: New Window for the default distro, or Remote-WSL: New Window using Distro for a specific distro (if you have multiple installed). There will be a first-time setup process. \\ {{: | ||
- | - You should see this something similar to this in the bottom left corner. \\ {{: | ||
- | - Use the File menu to open your remotely mounted stu dir or project folder at ~/ | ||
- | - Install the [[https:// | ||
- | | ||
- | ==== While Working === | ||
- | * You will need to install any external libraries in WSL (ex: OpenSSL for CS457) | ||
- | * SSH from your WSL terminal into stu to compile and run code to ensure compatibility. | ||
- | * Avoid compiling and running from your local WSL. | ||
- | |