Skip to content

Developing Remotely

This document will walk you through using VSCode to develop remotely. This is incredibly convenient as it allows you to connect directly to a server to run and test your code. For advanced users you can read through the official documentation for more details on how everything works.

Developing remotely is optional and is provided for students who wish to get everything setup. You are not required to develop remotely, all the homework assignments can be done on the CS lab machines in the CCP building. Your professor or teaching assistant can not provide tech support for personal machines.

Setup a Remote Connection

  • First you need to install the Remote development extension pack
  • Click in the lower left hand corner and then select "Connect to Host..." as shown in the screenshot below. connect
  • Select "+ Add New SSH Host..." new host
  • Type in your username and host name. Your username is the same as your BSU email. For example, if your email is jimbob@u.boisestate.edu then your username is jimbob. The host name will be onyx.boisestate.edu. So the connection string will be jimbob@onyx.boisestate.edu. user and host
  • Select the default ssh configuration profile ssh config
  • Select Connect on the pop up in the lower right of your screen. vscode connect
  • Enter in your password vscode connect
  • Here is the entire process Visual walk through

INFO

Depending on your operating system you may see slightly different popups that what is shown in the screenshots above. That is to be expected and should not impact your ability to connect to onyx.boisestate.edu.

Verify your connection

Once you are connected you can verify your status as shown below:

  1. You should see SSH: onyx.boisestate.edu
  2. When you run the command hostname in the integrated terminal you should see onyx.boisestate.edu
  3. When you run the command whoami in the integrated terminal you should see your Boise State username.

VSCode connected

Installing remote extensions

When you are working remote VSCode does not automatically install any of your extensions. To get all your remote extensions installed open the Extension manager and then select the local extensions that you wish to install on the remote machine.

VSCode remote extensions

Connect to an Existing Remote

Assuming you have followed the steps above to setup a new remote connection you can now reconnect anytime.

TIP

You can bring up the Command Palette by hitting the F1 key

connect existing

  • Select connect to started developing

TIP

The first time you connect it may take some time for VSCode to install all the tools so be patient and don’t close or stop the process or it could cause your install to fail!

select onyx

Released under the MIT License.