lahive.blogg.se

Visual studio code ssh edit
Visual studio code ssh edit












If the workspace was recently used, you can use File > Open Recent > $de-workspace otherwise go to File > Open Workspace. Now open your workspace again with a new connection. code-workspace file somewhere it won’t be picked up by Git There is, however, a workaround to make this a bit less tedious: Wouldn’t it be nice to have VS Code automatically open to the correct folder once your SSH connection is established? Unfortunately there isn’t a way to set a folder location in the settings yet you’d need to click Open Folder and navigate to the project root every time you connect. You’re now connected and can use VS Code’s features like Terminal and Debug Console just like you would locally.

visual studio code ssh edit

If your key is on the server, it will state it has your fingerprint and prompt you to continue. If your public SSH key isn’t on the remote server, you will be prompted to enter a password.

visual studio code ssh edit

Click the green Open a Remote Window icon on the bottom left corner, select Connect to Host., and pick your desired host, in this case MySite.














Visual studio code ssh edit