Remote IDE (VS Code)
You can access Oscar's file-system remotely from Visual Studio Code (VS Code). Note that access of Oscar from VS Code is still considered experimental, and as such, 24x7 support is not available.
Last updated
Was this helpful?
You can access Oscar's file-system remotely from Visual Studio Code (VS Code). Note that access of Oscar from VS Code is still considered experimental, and as such, 24x7 support is not available.
Last updated
Was this helpful?
To use VS Code you must be on a Brown compliant network or connected to the VPN. Please install the Brown VPN client before proceeding.
September 10, 2023: Some users have reported issues while connecting to the Oscar VS Code remote extension. This is due to a recent change introduced by VS Code. To address this issue
Ctrl (cmd on Mac) + Shift + P > Remote-SSH: Settings
Disable the Remote.SSH: Use Exec Server option
To use VS Code you will need to be connected to the VPN. Please install the Brown VPN client before proceeding.
Install the Remote Development extension pack for VS Code:
2. Open VS Code settings and uncheck symlink:
Code > Preferences > Settings
Search for symlink
and make sure the symlink searching is unchecked
3. Make sure you have set up passwordless SSH authentication to Oscar. If you haven't, please refer to this documentation page.
If you have Windows Subsystem for Linux (WSL) installed in your computer, you need to follow the instructions for Windows (PowerShell).
4. Edit the config
file:
The config
file is located at:
~/.ssh/config
If you have Windows Subsystem for Linux (WSL) installed in your computer, you need to follow the instructions for Windows (PowerShell).
Edit the config
file on your local machine, add the following lines. Replace <username>
with your Oscar username.
September 10, 2023: Some users have reported issues while connecting to the Oscar VSCode remote extension. This is due to a recent change introduced by VSCode. To address this issue
In VS Code, select Remote-SSH: Connect to Host… and after the list populates select ccv-vscode-node
6. Install and set up of VS Code
After a moment, VS Code will connect to the SSH server and set itself up.
Configure VS Code
Important: Please run the following to add a settings.json file to your config. This is because the filewatcher and file searcher (rg) indexes all the files you have access to in your workspace. If you have a large dataset (e.g. machine learning) this can take a lot of resources on the vscode node.
Connect to VS Code first.
You can either create a symlink via the ln
command below,
or manually create /users/$USER/.vscode-server/data/Machine/settings.json
file with following contents
Click the green icon "Open a Remote Window" in the bottom left corner of VS Code Window. Then click "Connect to Host" in the drop down list.
2. Select the ccv-vscode-node
option to connect to Oscar.