vscode扩展需要在下次连接时重新安装

huangapple go评论78阅读模式
英文:

vscode extensions need to re-install when I connect next time

问题

当我使用 vscode 的 Remote-SSH 时,在 SSH 服务器上安装了一些扩展。但是当我几天后重新连接 SSH 时,这些扩展都消失了,这意味着我必须重新安装。这些扩展包括:

  • Python
  • Pylance
英文:

When I use vscode Remote-SSH, I install some extensions in SSH server.
But when I connect ssh several days later, the extensions have disappeared which means I have to install again.

  • vscode-extensions like these:
    • Python
    • Pylance

答案1

得分: 0

根据我的了解,如果你在SSH主机上安装了该扩展,它不会删除你的扩展。

你可以打开你的用户 settings.json 文件并添加以下代码:

"remote.SSH.defaultExtensions": [
  "ms-python.python",
  "ms-python.vscode-pylance"
]

这样,当你使用SSH远程连接时,扩展将始终保持安装状态。阅读有关管理扩展的更多信息

英文:

As far as I know, if you installed the extension on the SSH host, it'll not remove your extension.

You can open your USER settings.json and add the following codes:

  "remote.SSH.defaultExtensions": [
    "ms-python.python",
    "ms-python.vscode-pylance"
  ]

In this way, when you use SSH remote connection, the extension will always remain installed. Read document for more information about Managing extensions.

huangapple
  • 本文由 发表于 2023年3月9日 12:54:47
  • 转载请务必保留本文链接:https://go.coder-hub.com/75680563.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定