-
Notifications
You must be signed in to change notification settings - Fork 0
Setting Up Remote Development
Let's connect Ubuntu with Visual Studio Code! The purpose of this is so that you can easily edit files using an editor. There are two ways to do this, depending on if you're SSH-ing into a server or if you're using Ubuntu on your personal computer.
- Install Visual Studio Code (VS Code) for your machine
- Install the VS Code Remote Development extension pack
Once you download the Remote Development extension pack, the navigation bar on the left-hand side of VS Code should look like this:
The circled icon is the Remote Development extension pack. Press the icon, and it should open up a side bar. Find out whether you're using Ubuntu using WSL or SSH-ing into a lab computer. If you have downloaded Ubuntu using the Windows store, that is considered WSL.
If you're using WSL, select "WSL Targets" in the drop-down, and you should see your Ubuntu system as an option to connect to (you may need to have your Ubuntu WSL terminal open to have it show up). Simply press the connect button and you're good to go! If you run into any problems, reference this site.
If you're SSH-ing into a computer, on the top bar, go to View -> Command Palette. You can also access the Command Palette by pressing Ctrl-Shift-P if you're on a Windows computer. Type "Remote-SSH: Connect to Host..." and press it. Type in your user@host (see Vinitha for specific credentials) and press Enter. A new VS Code window should pop up and will ask for the password at the top (see Vinitha for the password as well). After you enter your password, you're good to go! If you run into any problems, reference this site.
Congrats! You can now edit files using VS Code :)