Source Studio
lazygit-style source control for VS Code. Keyboard-driven staging, branches, worktrees, stashes, a commit graph, interactive rebase, blame, undo and GitHub pull requests — across every repository in your workspace, without leaving the editor.
If you've ever kept a terminal open just to run lazygit, this is that workflow inside VS Code: six focused panels, single-key actions, and diffs that open in the editor you're already looking at.

Highlights
- Multiple repositories, one panel. Every repo in the workspace is found automatically (including nested ones). Pick the active repo and every view follows it. The activity-bar badge shows the total number of changes.
- Stage like lazygit.
space toggles a file, a stages everything, checkboxes stage whole folders. Open any file and stage, unstage or discard individual lines and hunks straight from the diff editor.
- A real commit panel. Subject and description, 50/72 counter, amend,
--no-verify, sign-off, commit & push. Pre-filled from your commit template (commit.template, .gitmessage, or a PR template) and the ticket key in your branch name.
- Commit graph with history rewriting. Squash, fixup, reword, drop, reorder and edit commits with one key each. Cherry-pick, revert, reset, branch from any commit.
- Undo.
z walks the reflog to undo the last commit, rebase, reset, checkout or merge; Z redoes. A reflog browser is there for anything deeper.
- Branches, worktrees and stashes as first-class views with checkout, create, delete, rename, rebase-onto, merge-into, fast-forward, upstream, switch worktree, apply/pop/drop stash.
- Conflicts handled. When a rebase, merge, cherry-pick or stash-apply stops on conflicts, the Files view lists them. Click one to resolve it in VS Code's 3-way merge editor, mark it resolved, then Continue or Abort from the toolbar.
- Blame per file (gutter annotations) or for the current line, with hover cards linking to the commit.
- GitHub built in. Branches show their open pull request and CI status.
o opens a branch's PR, or pushes the branch and opens the compare page to create one. Open or copy a GitHub link for any branch, commit, file or selected lines. Works with GitHub Enterprise Server too.
The panels
Press 1–6 from any Source Studio view to jump between them, ? to see the keymap.
| # |
View |
What it shows |
| 1 |
Repositories |
Every repo with its branch, ahead/behind and change count. Click to make it active. |
| 2 |
Files |
Conflicts, staged, unstaged and untracked files, nested by folder. Click a file for its diff, a folder for a multi-diff. |
| 3 |
Branches |
Local branches by recency (current pinned), remotes grouped by name. Branches with an open GitHub PR show its number and check status. |
| 4 |
Worktrees |
Every worktree of the active repo; switch, create, remove, prune. |
| 5 |
Commits |
The graph for the checked-out branch (a for all branches). Hollow dots are unpushed. |
| 6 |
Stashes |
Click to see a stash's contents. |

Keymap
Keys work while a Source Studio view has focus and don't interfere with the editor.
Everywhere
| Key |
Action |
c |
Commit (opens the commit panel) |
P / p / f |
Push / Pull / Fetch |
z / Z |
Undo / Redo (reflog-based) |
? |
Keymap |
Files
| Key |
Action |
space |
Stage / unstage selection |
a |
Stage all |
d |
Discard |
s |
Stash (all / staged / with untracked) |
A |
Amend HEAD with staged changes |
R |
Refresh |
Branches
| Key |
Action |
space |
Checkout (remote branches get a tracking branch) |
n |
New branch from selected |
d |
Delete (offers force-delete; confirms remote deletes) |
R |
Rename |
r |
Rebase current branch onto selected |
M |
Merge selected into current |
u |
Set upstream |
o |
Open pull request (or create one on GitHub) |
Commits
| Key |
Action |
j / k, Enter |
Move, show diff |
space |
Checkout commit (detached) |
n |
New branch at commit |
c / t |
Cherry-pick / Revert |
g |
Reset to commit (soft / mixed / hard) |
s / f |
Squash / fixup into parent |
r / d / e |
Reword / Drop / Edit (pause rebase) |
J / K |
Move commit down / up |
y |
Copy SHA |
o |
Open commit on GitHub |
a |
Toggle all branches |
Worktrees — space switch, n new, d remove. Stashes — space apply, g pop, d drop, n new.
In a diff editor
| Key |
Action |
alt+s / alt+h |
Stage selected lines / hunk |
alt+u / alt+shift+h |
Unstage selected lines / hunk (in the HEAD ↔ Index diff) |
| right-click |
Discard selected lines / hunk |
In any editor — alt+b toggles file blame; alt+g opens the current line (or selection) on GitHub; right-click for line blame and to copy a GitHub link.

Commit panel
c opens a tab with a subject line, description, and toggles for amend, --no-verify and sign-off. ⌘/Ctrl+Enter commits, ⌘/Ctrl+Shift+Enter commits and pushes. Lines starting with # are stripped, so comment-style templates work as they do in a terminal. Drafts are kept per repository until you commit.
The description is pre-filled from, in order: git's commit.template, then the files in sourcestudio.commit.templateFiles (defaults cover .gitmessage and the common pull_request_template.md locations). The subject is seeded from the ticket key in the branch name, e.g. feature/PLA-123-thing → PLA-123: .
Resolving conflicts
When a rebase, merge, cherry-pick, revert or stash apply stops on conflicts, the files appear under Conflicts in the Files view.
- Click a conflicted file to open it in VS Code's 3-way merge editor, with Current and Incoming labeled by branch and commit. To edit the conflict markers by hand instead, use Open File.
- Mark Resolved (the check button in the merge editor's title bar, or inline in Files) stages the file. From the merge editor it asks first if conflicts are still unhandled. From Files it warns if the file still contains conflict markers.
- Accept Current / Accept Incoming (right-click a file, folder or the Conflicts group) resolves whole files to one side. This discards the other side's changes, so it asks first.
- Deleted on one side: when one side deleted the file and the other changed it, clicking it asks whether to keep the file or delete it.
When Conflicts is empty, use Continue in the Files or Branches toolbar to finish the operation, or Abort to undo it.
The merge editor is VS Code's own and is opened through the same internal command the built-in Git extension uses. While the built-in Git extension is enabled, its own Complete Merge button also appears in the merge editor; it stages the file too, but then switches to VS Code's Source Control view.
GitHub
When the active repository's remote (origin by default) points at GitHub, Source Studio adds pull request and CI status on top of the git views. It signs in with VS Code's built-in GitHub account, so there is no token to manage. If you aren't signed in, a Sign in to GitHub button appears in the Branches toolbar.
Pull requests in Branches. A branch with an open PR shows its number next to it, e.g. #42 ✓ or #57 draft ●. Hover for the PR title and author, with a link to the PR. The check glyph combines GitHub Actions, check runs and commit statuses: ✓ passed, ✗ failed, ● still running. The current branch shows its check status even without a PR.
Open or create a PR. Press o on a branch, or click the pull-request icon:
- If the branch has an open PR, it opens in the browser.
- If the branch isn't on the remote yet, Source Studio offers to push it (setting upstream) first.
- If it has unpushed commits, you can push first or open anyway.
- Then it opens GitHub's compare page against the repository's default branch, ready to create the PR.
Right-click a branch with a PR to copy its URL.
Open on GitHub. Jump to the GitHub page for whatever you're looking at:
| From |
Opens |
| Branches (right-click) |
The branch's tree |
Commits (o or right-click) |
The commit |
| Files (right-click) |
The file at the current HEAD commit |
Editor (alt+g or right-click) |
The file at HEAD, with the current line or selected lines highlighted |
Copy GitHub URL (right-click in Commits or an editor) copies the same link instead of opening it. Links use the HEAD commit SHA, so they stay stable but only resolve once that commit is pushed.
GitHub Enterprise Server. Hosts set in VS Code's github-enterprise.uri are recognized automatically and sign in through VS Code's GitHub Enterprise account. Add any other hostnames to sourcestudio.github.enterpriseHosts.
Notes
- PR and check data is cached for a minute and refreshed when the repository changes, so the views don't hammer the API.
- Sign-in requests the
repo scope. GitHub needs it to read pull requests and checks on private repositories.
- PRs opened from forks aren't matched to local branches.
- Set
sourcestudio.github.enabled to false to turn PR and check status off.
Settings
| Setting |
Default |
Purpose |
sourcestudio.gitPath |
git |
Path to the git executable |
sourcestudio.scanDepth |
3 |
How deep to look for repositories under each workspace folder |
sourcestudio.ignoredFolders |
node_modules, dist, … |
Folders skipped while scanning |
sourcestudio.commit.templateFiles |
.gitmessage, pull_request_template.md, … |
Commit-template files to try, relative to the repo root |
sourcestudio.commit.branchPrefixPattern |
(?:^\|/)([A-Z][A-Z0-9]+-\d+) |
Regex that pulls a ticket key from the branch name (empty to disable) |
sourcestudio.commit.branchPrefixFormat |
{match}: |
How the key is inserted into the subject |
sourcestudio.github.enabled |
true |
Show pull request and check status for branches |
sourcestudio.github.remote |
origin |
Which remote to treat as the GitHub repository |
sourcestudio.github.enterpriseHosts |
[] |
Extra GitHub Enterprise hostnames to treat as GitHub |
Requirements
- VS Code 1.90 or newer
- git 2.35 or newer on your PATH (for
stash --staged and switch)
- Optional: a GitHub (or GitHub Enterprise Server) account signed in to VS Code, for pull request and check status
Source Studio runs git directly; it doesn't replace or disable VS Code's built-in Git support, and the two coexist.
Safety
Destructive actions — discard, drop, hard reset, force-delete, remote-branch delete — always ask first. History rewrites run with --autostash, so a dirty working tree is stashed and restored around them. Nearly everything can be reversed with z.
Feedback
Bugs and ideas: github.com/eventtemple/source_studio/issues.
Contributing
git clone https://github.com/eventtemple/source_studio
cd source_studio && npm install
npm run watch # rebuild on save
# F5 in VS Code → "Run Extension"
npm run typecheck # tsc --noEmit
npm run package # build a .vsix
The code is plain TypeScript bundled with esbuild: src/git/ wraps git and parses its porcelain output, src/views/ holds the six panels, src/commands/ the actions, src/blame/ the annotations, and src/github/ the GitHub API client and PR/check cache. See CHANGELOG.md for release notes.