tom-pollak / lazygit-vscode

https://marketplace.visualstudio.com/items?itemName=TomPollak.lazygit-vscode
MIT License
4 stars 1 forks source link
git lazygit vscode-extension

LazyGit for VSCode

Native integration of LazyGit directly in a VSCode window (not an integrated terminal)

https://github.com/tom-pollak/lazygit-vscode/assets/26611948/5924db82-7937-4ed9-96ad-07963af4b56e

Features

VSCode integration

Set the following in your LazyGit config for VSCode support:

os:
  editPreset: "vscode"

This allows a pretty slick experience opening windows with e

If you prefer to use a different tool on the cli, you can configure a custom LazyGit config for VSCode with lazygit-vscode.configPath

Notes on Windows

Default cmd is ctrl+shift+l which may be captured by the shell. Ensure the following config

  "terminal.integrated.sendKeybindingsToShell": false, // ensure this is false
  "terminal.integrated.commandsToSkipShell": ["lazygit-vscode.toggle", "workbench.action.closeWindow"], // add this

Requirements

Usage

Use the keyboard shortcut Ctrl+Shift+L (or Cmd+Shift+L on macOS) to toggle LazyGit

Extension Settings

For settings to be applied, LazyGit window must be restarted (q).

More info

LazyGit