英文:
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.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论