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
+8-6Lines changed: 8 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -57,13 +57,15 @@ 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
+
*`--name` sets a name for the tunnel, which will be later listed on the VSCode UI
68
+
67
69
You will be requested to go to [github.com/login/device](https://github.com/login/device) and enter an 8-digit code.
68
70
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
71
@@ -91,13 +93,13 @@ ssh daint
91
93
# start a uenv session on the login node
92
94
uenv start --view=default prgenv-gnu/24.11:v1
93
95
# then start the tunnel
94
-
code tunnel
96
+
code tunnel --name=$CLUSTER_NAME-tunnel
95
97
```
96
98
97
99
Alternatively, you can execute `code tunnel` directly in the environment:
98
100
```
99
101
ssh daint
100
-
uenv run --view=default prgenv-gnu/24.11:v1 -- code tunnel
102
+
uenv run --view=default prgenv-gnu/24.11:v1 -- code tunnel --name=$CLUSTER_NAME-tunnel
101
103
```
102
104
103
105
Once the tunnel is configured, you can access it from VSCode.
@@ -119,7 +121,7 @@ If you plan to do computation using your VSCode, then you should first allocate
119
121
You can directly execute the `code tunnel` command using srun:
0 commit comments