我喜欢 VS Code 的一点是,当我在 WSL 中使用终端时,我可以运行code file.txt,并且它将使用 WSL 远程扩展在我的本地使用 VS Code 打开该文件。
code file.txt
是否可以用 SSH 做类似的事情?即,如果我code file.txt通过 SSH 连接到远程主机,是否可以进行设置,以便运行将在我的本地计算机上打开 VS Code,通过远程 SSH 扩展连接来打开该文件?
ssh visual-studio-code vscode-remote
ssh ×1
visual-studio-code ×1
vscode-remote ×1