Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Git Info HelperNew to Visual Studio Code? Get it now.
Git Info Helper

Git Info Helper

pengpengqi

|
3 installs
| (1) | Free
Display git info and remote repository in status bar.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

git-info-display 插件说明

功能

git-info-display 插件提供以下功能:

  • 在 VS Code 状态栏中显示当前 Git 用户名或邮箱。
  • 点击可切换显示 Git 用户名还是邮箱。
  • 支持默认显示 Git 用户名还是邮箱。
  • 支持快速打开远程仓库的浏览器页面。

使用要求

此插件需要系统已安装 Git,并且 Git 可通过命令行访问。请确保您的系统已正确配置 Git。

插件设置

此插件提供以下命令:

  • gitUserInfo.selectInfo:选择在状态栏中显示 Git 信息(用户名或邮箱)。
  • gitUserInfo.refresh:刷新显示的 Git 信息。
  • gitUserInfo.openRemote:在浏览器中打开远程仓库。
  • gitUserInfo.toggleInfo:切换状态栏中显示的 Git 信息(用户名或邮箱)。

配置项

在 VS Code 设置中,可以配置以下选项:

  • gitInfoDisplay.showGitInfo:是否在状态栏显示 Git 用户信息(默认:true)
  • gitInfoDisplay.showRemoteRepo:是否在状态栏显示远程仓库信息(默认:true)
  • gitInfoDisplay.defaultInfo:默认显示的 Git 信息类型,可选值:
    • name:显示用户名(默认)
    • email:显示邮箱

已知问题

  • 如果系统未安装或未配置 Git,插件可能无法正常工作。
  • 如果当前工作区未设置远程仓库,远程仓库检测可能会失败。

感谢使用 git-info-display 插件!

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft