答案1
您可以使用以下命令获取命令行帮助
code -h
(A男人页面不存在。)
Extensions Management:
--extensions-dir <dir> Set the root path for extensions.
--list-extensions List the installed extensions.
--show-versions Show versions of installed extensions, when
using --list-extension.
--install-extension (<extension-id> | <extension-vsix-path>) Installs an extension.
--uninstall-extension (<extension-id> | <extension-vsix-path>) Uninstalls an extension.
--enable-proposed-api <extension-id> Enables proposed API features for an extension.
因此,您所需要的只是 extension-id 或 extension-vsix-path,然后
code --install-extension (<extension-id> | <extension-vsix-path>)
例如微软 Python可以通过以下方式安装软件包
code --install-extension ms-python.python