Visual Studio Remote Development: Difference between revisions

From Tycho
Jump to navigation Jump to search
No edit summary
 
(7 intermediate revisions by the same user not shown)
Line 1: Line 1:
[https://github.com/Microsoft/vscode-remote-release#readme Remote development ] is a set of extensions for Visual Studio Code that allows you to interact with a remote server on VSCode as if it is running on your local computer. For more details, refer to Microsoft's documentation [https://code.visualstudio.com/docs/remote/remote-overview here].
[https://github.com/Microsoft/vscode-remote-release#readme Remote development ] is a set of extensions for Visual Studio Code that allows you to interact with a remote server on VSCode as if it is running on your local computer. For more details, refer to Microsoft's documentation [https://code.visualstudio.com/docs/remote/remote-overview here].


== Enabling and configuring Remote Development ==
== Enabling and configuring Remote - SSH ==
Follow the instructions [https://code.visualstudio.com/docs/editor/extension-marketplace here] for searching and installing extensions on VSCode. Search for and install the extension "Remote Development".
=== Installing Remote - SSH ===
First you will need to install a SSH client compatible with <code>OpenSSH</code>. Refer to [https://code.visualstudio.com/docs/remote/troubleshooting#_installing-a-supported-ssh-client this page] for more instructions ('''note:''' if you are running macOS, you do not have to do this).


After reloading/reopening VSCode, on the activity bar (on the left) there should now be one more item "Remote Explorer". Hover over "SSH" and a "+" symbol should show up. After clicking the "+" symbol, a prompt will show up and ask you to enter SSH connection command as if you are using a terminal app, such as
Follow the instructions [https://code.visualstudio.com/docs/editor/extension-marketplace here] for searching and installing extensions on VSCode. Search for and install the extension "Remote - SSH" (or if you are feeling fancy, install "Remote Development" that includes "Remote - SSH" instead). Alternatively, just click [https://marketplace.visualstudio.com/items?itemName=ms-vscode-remote.remote-ssh here].
<code>ssh username@astro02.hpc.ku.dk</code>


== Installing even more extensions for extra features ==
=== Adding a remote host/server ===
=== for python ===
After reloading/reopening VSCode, on the activity bar (on the left) there should now be one more item "Remote Explorer". Click on that and a separate tab should pop up. Hover over "SSH" and a "+" symbol should show up. After clicking the "+" symbol, a prompt will show up and ask you to enter SSH connection command as if you are using a terminal app, such as
=== for julia ===
<pre>
=== for jupyter notebook ===
ssh your_username@astro02.hpc.ku.dk
</pre>
Refer to [[Accessing Tycho]] for more explanations.
 
You should now be able to browse/edit files on the cluster as if it is your local machine by clicking "Open Folder" or using "Explorer" on the activity bar.
 
You can also create a new terminal session by clicking "Terminal" on the top and then select "New Terminal".
 
== Installing more extensions on a remote machine for extra features ==

Latest revision as of 14:17, 15 November 2023

Remote development is a set of extensions for Visual Studio Code that allows you to interact with a remote server on VSCode as if it is running on your local computer. For more details, refer to Microsoft's documentation here.

Enabling and configuring Remote - SSH

Installing Remote - SSH

First you will need to install a SSH client compatible with OpenSSH. Refer to this page for more instructions (note: if you are running macOS, you do not have to do this).

Follow the instructions here for searching and installing extensions on VSCode. Search for and install the extension "Remote - SSH" (or if you are feeling fancy, install "Remote Development" that includes "Remote - SSH" instead). Alternatively, just click here.

Adding a remote host/server

After reloading/reopening VSCode, on the activity bar (on the left) there should now be one more item "Remote Explorer". Click on that and a separate tab should pop up. Hover over "SSH" and a "+" symbol should show up. After clicking the "+" symbol, a prompt will show up and ask you to enter SSH connection command as if you are using a terminal app, such as

ssh your_username@astro02.hpc.ku.dk

Refer to Accessing Tycho for more explanations.

You should now be able to browse/edit files on the cluster as if it is your local machine by clicking "Open Folder" or using "Explorer" on the activity bar.

You can also create a new terminal session by clicking "Terminal" on the top and then select "New Terminal".

Installing more extensions on a remote machine for extra features