Skip to content

gymynnym/vscode-gitui

Repository files navigation

vscode-gitui

screenshot

GitHub Release Visual Studio Marketplace Installs

A VSCode extension to open GitUI and Lazygit in an integrated terminal.

Installation

Important

Requires GitUI or Lazygit to be installed and available on your PATH.

There are 2 ways to install this extension:

  1. Install from the Visual Studio Code Marketplace
  2. Download VSIX file from GitHub Releases

Commands

  • vscode-gitui.open : Open GitUI/Lazygit in terminal
  • vscode-gitui.reload : Reload GitUI/Lazygit on PATH

Warning

When running vscode-gitui.open in a Python environment, the extension temporarily sets the python.terminal.activateEnvironment setting to false at the workspace level for better user experience. After execution, the settings is automatically restored to its original value. (If the setting is already false, this step is skipped.)

Keybindings

Default Keybindings

  • ctrl+alt+g : Open GitUI/Lazygit (Linux/Windows)
  • ctrl+cmd+g : Open GitUI/Lazygit (macOS)

VSCodeVim Keybindings: for nerds (Example)

{
  "vim.normalModeKeyBindingsNonRecursive": [
    {
      "before": ["space", "g", "g"],
      "commands": [{ "command": "vscode-gitui.open" }]
    },
    {
      "before": ["space", "g", "r"],
      "commands": [{ "command": "vscode-gitui.reload" }]
    }
  ]
}

Properties

  • vscode-gitui.useWSL : Enable if using GitUI/Lazygit via WSL (Windows only).
  • vscode-gitui.useLazygit : Enable if you want to use Lazygit instead of GitUI.