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
e
or o
to open a file in a new tab from the lazygit windowSet 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
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
lazygit-vscode.lazygitPath
). You can find installation instructions for LazyGit here.Use the keyboard shortcut Ctrl+Shift+L
(or Cmd+Shift+L
on macOS) to toggle LazyGit
lazygit-vscode.toggle
: Toggle LazyGitlazygit-vscode.lazygitPath
: Manually set LazyGit path. Otherwise use default system PATH.lazygit-vscode.configPath
: Set custom LazyGit config. Useful if you like different behaviour between VSCode and CLI.lazygit-vscode.autoMaximizeWindow
: When working in split editors, maximize the lazygit window when showing lazygit (and restore on hide). recommended!lazygit-vscode.autoHideSideBar
: Auto-hide the side bar when showing lazygit.lazygit-vscode.autoHidePanel
: Auto-hide the panel when showing lazygit.For settings to be applied, LazyGit window must be restarted (q
).