Development System:
1.) Install “Remote VSCode” Plugin for Visual Studio Code
Open the Plugin Manager (STRG+SHIFT+X) and search for Remote VSCode –> Install and restart VS Code.
2.) Configure the “Remote VSCode” Plugin
Open the User settings, by using the shortcut: STRG+(COMMA “,”)
Apply following settings:
1 2 3 4 5 6 7 8 |
// Port number to use for connection. "remote.port": 52698, // Launch the server on start up. "remote.onstartup": true, // Address to listen on. "remote.host": "127.0.0.1" |
3.) Start the Remote Server
Start the Plugin by Press F1 and type in: Remote: Start Server
4.) Install “Windows-Subsystem for Linux”
Follow this simple Guide to install the Windows-Subsystem for Linux: https://docs.microsoft.com/en-us/windows/wsl/install-win10
It’s done in less then 5 mins.
5.) Setup SSH Tunnel Port redirect
Open the freshly installed linux subsystem and connect to the raspberry pi via ssh by redirecting the used port:
1 |
ssh -R 52698:localhost:52698 <IP Of the Raspberry Pi> |
Raspberry Pi:
1.) Install rmate for the Raspberry Pi
Install Rmate on the raspberry pi.
1 |
sudo pip install rmate |
1.) Open remote file on Visual Studio code:
Execute rmate and use the full file path to open the file in the Visual Studio code editor.
1 |
rmate <Path Of File> |
Hi, I’m having an issue. what is “shortcut: STRG+(COMMA “,”)” and the settings file seems to be read only!
Hi,
I think he is thinking of the Ctrl key.
In German the Control key on the keyboard is STRG
/Henrik
Hi,
could you please fix the command snippets? At least in my case they are displayed wrong which took me some time to find the Errors:
Setup SSH Tunnel:
ssh -R 52698:localhost:52698 @
=> in my Case: ssh -R 52698:127.0.0.1:52698 pi@192.168.178.37
Open remote file:
rmate -p 52698
(according to Remote VSCode documentation)