简体   繁体   English

如何在 VScode 中为机器的所有用户安装 Python 扩展

[英]How to install Python Extension in VScode for all users of a machine

I am trying install the Python Extension for VSCode for all users of a machine, but it is getting installed for only the current user.我正在尝试为机器的所有用户安装适用于 VSCode 的 Python 扩展,但它只为当前用户安装。 Can anyone help me on this.谁可以帮我这个事。

Thanks谢谢

You can try to change the root directory for extensions when launching code with the code --extensions-dir command .您可以在使用code --extensions-dir命令启动代码时尝试更改扩展的根目录。 You could also try and script the installation of the extension from a downloaded VSIX at start-up or something.您还可以尝试在启动时从下载的 VSIX 脚本安装扩展程序或其他内容。 Otherwise I think extension management is designed to be a personal thing and not system controlled (especially with VS Code itself support relocatable installs).否则,我认为扩展管理被设计为个人的事情,而不是系统控制的(尤其是 VS Code 本身支持可重定位安装)。

Issue has been resolved after saving the path "C:\Users<userProfile>.vscode\extensions" using the our Profile management tool.使用我们的配置文件管理工具保存路径“C:\Users<userProfile>.vscode\extensions”后问题已得到解决。 the data related to the extensions is stored in above mentioned path.与扩展相关的数据存储在上述路径中。 so after saving the path users were able to add the extensions.所以在保存路径后,用户可以添加扩展。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM