Skip to content

Visual Studio Code

Visual Studio Code is a powerful code editor and development environment that offers many extensions. It runs on various operating systems such as Linux, Windows and macOS. It supports many programming languages and functionalities. It enables an easy integration with various software development tools and has built-in support for Git, which facilitates the management of code versions. With an intuitive user interface and adjustable settings, it is a popular choice among developers worldwide.

Visual Studio Code using the extension Remote SSH makes it easier to work with projects on HPC Vega by reducing the need to use the terminal interface and offers a better overview of the files. Using this extension, developers can access remote servers directly from the editor, simplifying file management and editing on HPC Vega. By using this extension, developers can access remote servers directly from the editor, which simplifies management and editing files on HPC Vega

More information on Visual Studio Code is available here.

Connecting to HPC Vega

Open the VS Code editor on your computer and install the Remote SSH extension. More information is available here. You can install the extension by selecting the Extensions activity on the left side of the screen, typing Remote - SSH in the search bar that appears, and clicking on the Install button. After a successful installation, a new Remote Explorer activity will appear under the Extensions activity. When you click on this activity, the option to add SSH connections appears by clicking on the + button. At the top of the editor, an input box appears where you enter the following command, replacing the username with yours.

ssh username@login.vega.izum.si

Before entering the command above, check that you can connect to the HPC Vega login nodes via SSH from the terminal on your PC.

When the command is successfully executed, click on the blue button in the bottom left corner of the editor and select Connect current window to host, then select the HPC Vega login node from the list. The last step after a successful connection is to open the folder where the desired project is located.

To make it easier to connect with an ssh connection to HPC Vega, add the settings below to ~.ssh/config for Linux and macOS or C:\Users\YourUsername\.ssh\config for Windows:

Host loginvega
  HostName login.vega.izum.si
  User username

Host logingpu
  HostName logingpu.vega.izum.si
  User username

Host logincpu
  HostName logincpu.vega.izum.si
  User username

More detailed instructions are available here.