You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/access/vscode.md
+9-6Lines changed: 9 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -57,13 +57,16 @@ run the `code` executable that you downloaded the `tunnel` argument.
57
57
You will be asked to choose whether to log in to Microsoft or GitHub (we have tested with GitHub):
58
58
59
59
```
60
-
> code tunnel
60
+
> code tunnel --name=$CLUSTER_NAME-tunnel
61
61
...
62
62
? How would you like to log in to Visual Studio Code? ›
63
63
Microsoft Account
64
64
❯ GitHub Account
65
65
```
66
66
67
+
!!! tip
68
+
Give the tunnel a unique name using the `--name` flag, which will later be listed on the VSCode UI.
69
+
67
70
You will be requested to go to [github.com/login/device](https://github.com/login/device) and enter an 8-digit code.
68
71
Once you have finished registering the service with GitHub, in VSCode on your PC/laptop open the "remote explorer" pane on the left hand side of the main window, and the connection will be visible under REMOTES (TUNNELS/SSH) -> Tunnels.
69
72
@@ -91,13 +94,13 @@ ssh daint
91
94
# start a uenv session on the login node
92
95
uenv start --view=default prgenv-gnu/24.11:v1
93
96
# then start the tunnel
94
-
code tunnel
97
+
code tunnel --name=$CLUSTER_NAME-tunnel
95
98
```
96
99
97
100
Alternatively, you can execute `code tunnel` directly in the environment:
98
101
```
99
102
ssh daint
100
-
uenv run --view=default prgenv-gnu/24.11:v1 -- code tunnel
103
+
uenv run --view=default prgenv-gnu/24.11:v1 -- code tunnel --name=$CLUSTER_NAME-tunnel
101
104
```
102
105
103
106
Once the tunnel is configured, you can access it from VSCode.
@@ -119,7 +122,7 @@ If you plan to do computation using your VSCode, then you should first allocate
119
122
You can directly execute the `code tunnel` command using srun:
0 commit comments