Remote Development
To execute code on a remote server, you need to:
- Make sure you have SSH access to the server
- Install the Remote-SSH extension locally in VS Code
- Connect VS Code to the server (using this icon in the bottom left of the VS code window: )
- Install the Julia extension on the server through VS Code
Then, you can execute your code on the server the same way you would locally:
Persistent server sessions
When you close the VS Code window, the server-side REPL terminates by default. To make the REPL state persistent across sessions, you have to:
- Install
tmux
, a terminal multiplexer, on the server (e.g. withapt install tmux
) - Toggle the
julia.persistentSession.enabled
setting in the VS Code settings. Note that this setting is available only in the server installation of the Julia extensions, accessible from the "Remote ..." tab of settings: