vscode extension 2022-08-31

vscode插件安装的host根据当前workspace确定

  • workspace为本地,插件安装在本地机器
  • workspace为ssh remote,插件安装在remote机器

Where are extensions installed?#

Extensions are installed in a per user extensions folder. Depending on your platform, the location is in the following folder:

  • Windows %USERPROFILE%\.vscode\extensions
  • macOS ~/.vscode/extensions
  • Linux ~/.vscode/extensions

ntoe: if you install extensions while the workspace is on the remote host, the extensions folder on the remote host turns to be ~/.vscode-server/extensions

vscode extension home page commonly contains 4 tabs

Details - On the extension details page, you can read the extension's README and review the extension's.
Feature Contributions - The extension's additions to VS Code such as settings, commands and keyboard shortcuts, language grammars, debugger, etc.
Changelog - The extension repository CHANGELOG if available.
Dependencies - Lists if the extension depends on any other extensions.

Feature Contributions

点击插件主页的Feature Contributions可以看到:

  • Settings. 该插件【以配置项的形式展示】的功能集合. The extension provides settings for tuning its behavior, which you can find in the Settings editor (⌘,) vscode把所有插件的配置入口都收敛到Settings editor了,emmm。另外,这些配置可以在vscode的settings.json中进行配置
  • Commands. 该插件提供的命令集合,以及命令运行的环境
    例如Python插件提供了命令switchOffInsidersChannel
    Python extension提供的部分命令
    可以在vscode的commandPalette执行。那么我们调出commandPalette,键入python: switch就可以在下拉列表看到这个命令
  • Activation Events. 激活事件,表示当这些事件发生时,会使用到该插件
  • and so on

see more on https://code.visualstudio.com/docs/editor/extension-marketplace

你可能感兴趣的:(vscode extension 2022-08-31)