10. VSCode extensions
Author: Ángel Fernández Caravaca
Date: August 21, 2026
After nine chapters of commands, it is worth stating the obvious: hardly anyone types all of them all the time. The commands are what you need to understand what is going on, and once you understand it there is no virtue in staging thirty files by hand or reading a graph in ASCII art when the editor can draw it. This chapter is about the tools that put the previous nine chapters where you are already working, that is, what VSCode does on its own, which extensions genuinely add something, what each one actually gives you and which ones you can skip.
Note
Extensions change faster than concepts, so take what is said here about specific versions as a snapshot from August 2026 and not as a permanent truth. Publisher identifiers, on the other hand, are stable, and each extension below is given as publisher.name, which is what you paste into the Extensions view's search box to get exactly the one listed and not a lookalike.
What VSCode already does without any extension¶
The chapter's first recommendation is to install less than you think you need, because the built-in Git support has absorbed most of what people used to install extensions for. Before adding anything, it is worth knowing what is already there:
| Built-in feature | Where it is | Which chapter it covers |
|---|---|---|
| Source Control view | The third icon in the activity bar, or Ctrl+Shift+G |
Chapter 1, that is, status, add, commit |
| Staging by hunk or by line | Right-click inside a diff, Stage Selected Ranges | Chapter 1, that is, git add -p without the interactive prompt |
| Gutter indicators | The coloured marks next to the line numbers | Chapter 2, that is, git diff at a glance |
| Timeline view | Bottom of the Explorer, with a file open | Chapter 2, that is, git log for one file |
| Source Control Graph | Inside the Source Control view | Chapter 4, that is, git log --oneline --graph --all |
| Branch picker | The branch name in the status bar, bottom left | Chapter 3, that is, branch and switch |
| Sync, pull and push | The status bar and the ... menu |
Chapter 6 |
| Three-pane merge editor | Opens on its own on a conflicting file | Chapter 5 |
| Publish Branch | Appears after committing on a new branch | Chapter 6, that is, git push -u origin <branch> |
Two of them deserve a sentence each, since they are recent enough that most guides online still assume they don't exist.
The Source Control Graph was built into VSCode in version 1.93, and it draws the commit graph inside the Source Control view, with a picker to filter it by branch or show several at once and, in a workspace with several repositories, a picker to pin it to one of them. It is the feature people used to install Git Graph for, and it now ships with the editor.
The three-pane merge editor is the tool Chapter 5 described, that is, your side, theirs and the result in three panes, with Accept Current / Accept Incoming / Accept Both corresponding to --ours, --theirs and keeping both blocks. It opens on its own when you click a conflicting file, and the contract with Git doesn't change: it writes the resolved file, and the merge is still finished by staging and committing.
Tip
Extensions are not free. Each one adds start-up time, memory and, often, a second
button for something the editor already does, so the honest test before installing is
which chapter does this cover for me that VSCode doesn't? Run Developer: Startup
Performance from the command palette now and then if VSCode feels slow, since it
names the extensions responsible.
GitLens: the first one worth installing¶
eamodio.gitlens: published by Eric Amodio and maintained by GitKraken.
If you install only one extension from this chapter, make it this one. GitLens doesn't so much add commands as make history visible from inside the code you are reading, which is what the terminal really can't do. Its useful parts, in the order you will come across them:
-
Inline blame. At the end of the line the cursor is on, in grey, GitLens writes who last changed it, when and with what commit message. It is
git blame, from the Chapter 2 family, except it answers the question the moment you ask it, that is, while you are staring at a line you don't understand. -
Hovers. Hovering over that annotation opens a card with the full commit message, the author, the diff of that change and links to open the commit, compare it or copy its hash. Most "why is this line here" investigations end on that card.
-
CodeLens. Above every function and every file, an unobtrusive line saying how many authors have touched it and how long ago, which leads to the history with one click.
-
File and line history. Two side views, that is, every commit that touched this file and every commit that touched this line, which is the visual form of the
git log -Lmost people never get round to learning. -
Revision navigation. Arrows to walk a file backwards and forwards through its own history, showing each version in the editor. It is the
git show <commit>:<file>from Chapter 2, stepped through with a key. -
Commit Graph. GitLens's own graph view, richer than the built-in one, with search and filtering, and with the actions from Chapters 3, 4, 6 and 8 available in any commit's context menu.
-
Search & Compare. A view for finding commits by message, author, file or content, and for comparing any two refs, that is, the
git log --grepandgit diff <a> <b>from Chapter 2 with the arguments filled in for you. -
Interactive rebase editor. This one is a real improvement over the terminal: when you run
git rebase -i, GitLens replaces the to-do file from Chapter 8 with a drag-and-drop list where reordering is dragging andpick/squash/fixup/dropare drop-downs. The result is exactly the same script, so nothing in Chapter 8 changes, but reordering five commits stops being an exercise in careful typing. -
Worktrees, stashes and remotes have their own views in the sidebar, which is where the commands from Chapters 3 and 6 become clickable.
GitLens is free in its Community edition, which covers everything in the list above you will use daily, that is, blame, hovers, CodeLens, file history and revision navigation. A Pro tier, of about ten dollars a month and included with GitKraken, adds the integrations and cloud-based views, e.g. the pull request hub they call Launchpad. The exact line between the two has moved several times, so check the extension's own page and not any blog post, this one included.
Important
GitLens's default configuration is very chatty, and the most common reason people uninstall it is the visual noise rather than any real objection to the extension. Two settings calm it down, and they are worth applying on day one:
With both turned off you keep the hovers, the views and the graph, that is, the parts you will go looking for, and you lose the ones that decorate the code while you are trying to read it.
Graph viewers: the state of Git Graph¶
This section exists because the recommendation everyone repeats is out of date, and following it today leads you to an abandoned extension.
mhutchie.git-graph was for years the answer to "how do I see the graph in VSCode?", and it is excellent. However, it hasn't received any significant update since late 2024 and its repository has open issues proposing its retirement. Worse still for its future, it was published without an open source licence, so nobody can legally fork it and carry it on, which is why the community discussion ended up asking Microsoft to build the feature into VSCode. It still works, and if you already have it there is no rush to remove it, but it is not what you should install today.
The replacement comes in two forms, and which one you want depends on how much you need:
-
The built-in Source Control Graph, described in the first section. It draws the graph, filters it by branch and handles several repositories, and it costs nothing to have. For most people, the question ends here.
-
the0807.git-graph-plus, a reimplementation and not a fork, since a fork was impossible. It goes well beyond drawing, that is, creatingfixup!commits from the graph and folding them in with an autosquash toggle, predicting which files would conflict before a merge or a rebase, amending from the graph's context menu, a syntax-highlighted diff viewer and support for Git Flow, bisect, submodules, LFS and the reflog with recovery of orphaned commits. Read that list alongside Chapters 8 and 9 and you will recognise almost all of it.
Caution
A graph viewer that lets you rebase, amend and force-push from a context menu is a genuinely useful tool and also the fastest way to accidentally break the golden rule from Chapter 8. The buttons don't warn you that the branch is shared, because they can't know. None of this changes the rule, that is, rewrite only what hasn't been shared, and the convenience of the menu is no argument for skipping the check.
GitHub Pull Requests and Issues¶
GitHub.vscode-pull-request-github: published by GitHub and developed in the open at microsoft/vscode-pull-request-github.
This is the extension that implements Chapter 7 inside the editor, and it is the one that changes your day-to-day work most if you work on GitHub. Sign in with your GitHub account, GitHub Enterprise included, and it then offers you:
-
A tree of pull requests in the sidebar, grouped by query. The default groups are Waiting For My Review, Assigned To Me and Created By Me, and they are configured with the
githubPullRequests.queriessetting, which takes a label and a GitHub search query per category. -
Checking out a pull request with one click, which is the
gh pr checkout 42from Chapter 7. The editor switches to the branch and enters a review mode in which the changed files appear as a set of diffs. -
Reviewing with comments in the editor. You comment on a line of the diff exactly where you would on the web page, you can leave suggestions and you submit the review with Approve, Comment or Request changes, that is, the three verdicts from the table in Chapter 7.
-
Creating a pull request from the branch you are on, with the base and head pickers, the description box and the repository's template if it has one.
-
Issues, which is the half people forget they have: browsing them, hover cards on
#42references and@mentions, autocompletion of both as you type, a Start working on issue action that creates and checks out a branch for it, and a code action that turns aTODOcomment into a real issue.
The reason to prefer it to the browser is not that the web interface is bad, because it isn't. It is that reviewing code in the editor gives you the editor, that is, go to definition, search across the whole repository and being able to actually run the branch, which is the difference between reading a diff and reviewing a change.
Note
It lives alongside the gh CLI from Chapter 7 rather than replacing it, and both share the same authentication. A sensible split is the extension for reviewing, that is, anything where you want to read code, and the CLI for the mechanical operations, that is, gh pr create --fill, gh pr merge --squash --delete-branch and the ones that go into scripts.
Conventional Commits¶
vivaxy.vscode-conventional-commits
Chapter 9 asked you to agree on a versioning scheme and write it down. Conventional Commits is the same idea applied one level lower, that is, an agreement about the shape of a commit message:
The message starts with a type, optionally a scope in brackets, then a colon and a short description, and a commit that breaks compatibility says so with a ! after the type or with a BREAKING CHANGE: line in the body. The commonly used types are feat, fix, docs, style, refactor, test, chore, perf, build and ci.
The convention is worth adopting for a reason that connects directly with the previous chapter: it lets you derive the version number and the changelog from the history. A release containing any feat needs a MINOR bump, one containing only fix needs a PATCH bump, and anything marked as breaking forces a MAJOR bump, which is exactly the semantic versioning rule from Chapter 9 expressed another way. The tools that generate changelogs and bump versions automatically all read this format.
The extension turns that into a wizard rather than something to remember. From the icon in the Source Control panel or from the command palette, it asks you for the type, the optional scope, an optional gitmoji, the short description, the long one and the breaking changes, and composes the message. It reads project-level scope lists, understands commitlint configuration if the repository has one, and can be told to stage and push afterwards through VSCode's usual Git settings.
Tip
Adopt the convention before the extension, and adopt it even if you work alone. The value is not
in writing it, which is trivial, but in the fact that six months later git log --oneline
answers what changed and how much it matters without you having to open every
commit. If what keeps you consistent is a wizard, use the wizard.
GitHub Actions¶
GitHub.vscode-github-actions: the official one, maintained by GitHub after growing out of an unofficial extension.
Two chapters mentioned automation without explaining it: the required status checks that block a merge in Chapter 7 and the pipeline triggered by a v* tag in Chapter 9. Both are GitHub Actions, that is, YAML workflow files that live in .github/workflows/, and this extension is what makes working with them bearable:
- Editing support in those YAML files, that is, validation against the official schema, autocompletion and inline documentation. It even downloads from GitHub.com the parameters, inputs and outputs of the actions you reference, so a misspelt input is flagged as you type and not after the run fails.
- Following runs from the sidebar, that is, the repository's workflows, their recent runs, the logs of each step and the ability to re-run one without opening a browser tab.
If your repository has no workflows, this extension is dead weight, and if it has any, it pays for itself the first time it catches an indentation error before you push.
Smaller ones worth knowing¶
None of these is essential, and each one solves a specific annoyance well:
| Extension | What it gives you | Chapter it belongs to |
|---|---|---|
codezombiech.gitignore |
Downloads a ready-made .gitignore for your language from GitHub's collection |
2 |
donjayamanne.githistory |
A focused history and file comparison view, lighter than GitLens | 2 |
waderyan.gitblame |
Blame in the status bar and nothing else, that is, the best of GitLens on its own | 2 |
mhutchie.git-graph |
The classic graph viewer, now unmaintained; see the previous section | 4 |
the0807.git-graph-plus |
Its modern reimplementation, with tools for rebase and bisect | 4, 8, 9 |
GitHub.remotehub |
Browse and edit a GitHub repository without cloning it | 6 |
waderyan.gitblame is the interesting entry in that list, since it is the sensible answer for someone who wants the blame annotation and finds the rest of GitLens too much. Installing it alongside GitLens, on the other hand, leaves you with two extensions competing to annotate the same line.
What to actually install¶
Gathering the chapter into a recommendation, in the order I would install them:
| Tier | Extension | Why |
|---|---|---|
| Essential | eamodio.gitlens |
Blame, hovers and history where you are reading the code |
| If you use GitHub | GitHub.vscode-pull-request-github |
Reviewing pull requests with the editor's tools at hand |
| If your repository has CI | GitHub.vscode-github-actions |
Workflow editing that catches errors before the push |
| If you want more graph | the0807.git-graph-plus |
Only if the built-in Source Control Graph falls short |
| Optional habit | vivaxy.vscode-conventional-commits |
Consistent commit messages, and changelogs for free |
For a personal project, that is, the situation this course was written for, the first line on its own is a complete answer.
Settings worth changing¶
Regardless of extensions, a handful of VSCode's own Git settings make day-to-day work smoother. Paste them into your settings.json and read them as the editor's version of the git config commands from Chapter 0:
One setting is deliberately missing from that list. git.enableSmartCommit makes the commit button stage everything when nothing is staged, that is, it turns the button into git commit -a, and it quietly erases the distinction between the working directory and the staging area that Chapter 1 worked so hard to build. It is a convenience once the distinction is second nature to you, and a bad idea before that.
Warning
git.postCommitCommand, which can be set to push or sync, is the same kind of trade-off. It saves a click by pushing every commit as soon as you make it, and it removes the window in which git commit --amend and the interactive rebase from Chapter 8 are still safe. Leave it off while you are learning, since an unpushed commit is the only one you can rewrite freely.
A word of warning about working by buttons¶
The whole point of this chapter is that graphical tools are good and you should use them. It is worth ending with the reason why the previous nine chapters came first all the same:
- A button is a command with its arguments hidden. Sync is
git pullfollowed bygit push, and the merge or rebase in between behaves exactly as Chapters 4 and 8 described. When something goes wrong, the message is in the terminal, and that message assumes you know which command it was. - The word on the button is not always Git's word. VSCode's Sync, its Publish Branch and GitLens's Push (force) are each shorthand for a specific command, and Chapter 6 is the one that tells you which.
- Dangerous operations are a right-click away. Force-push, hard reset, discard changes and rebase all live in context menus, without the friction that having to type them provides. The rules that protect you, that is, commit before anything destructive, don't rewrite what is shared and read
git statusfirst, are the same, and nothing in the interface enforces them. - Extensions come and go. Git Graph was the universal recommendation for five years and is now unmaintained, whereas
git log --graphhas worked the same since before it existed and will keep working after whatever replaces it. The commands are the stable layer, and that is worth something.
Summary¶
| Extension | What it gives you |
|---|---|
| (built-in) Source Control view | Staging by file, by hunk or by line, and commits |
| (built-in) Source Control Graph | The commit graph, since VSCode 1.93, filterable by branch |
| (built-in) Three-pane merge editor | Conflict resolution in three panes, that is, Chapter 5 with buttons |
| (built-in) Timeline view | The history of the file you have open |
eamodio.gitlens |
Inline blame, hovers, file and line history, revision navigation |
eamodio.gitlens |
A full commit graph, search and compare, and a drag-and-drop rebase editor |
GitHub.vscode-pull-request-github |
Pull requests and issues in the sidebar, reviewed in the editor |
GitHub.vscode-github-actions |
Workflow editing with validation, and run logs without a browser |
vivaxy.vscode-conventional-commits |
A wizard that writes messages in the Conventional Commits format |
the0807.git-graph-plus |
A maintained graph viewer, with rebase, bisect and conflict prediction |
codezombiech.gitignore |
A .gitignore generated for your language |
waderyan.gitblame |
Blame in the status bar, for anyone who doesn't want all of GitLens |
donjayamanne.githistory |
A lightweight history and comparison view |
GitHub.remotehub |
Browsing a GitHub repository without cloning it |
And with this the course ends. We started with a folder called .git and a discussion of what a commit really is, and we finish with an editor that draws it all for you. In between there is one idea of which every chapter has turned out to be a variation: Git stores immutable snapshots and moves pointers around them. A branch is a pointer, HEAD is a pointer to a pointer, a merge writes a commit with two parents and moves one, a rebase makes copies and moves one, a tag is the pointer that refuses to move, and a remote is the same structure in another repository, with origin/main caching where its pointers were. Everything else is a command that does one of those things and a convention about when to run it. If a situation ever stops making sense, that is the sentence to come back to, and git status, git log --oneline --graph --all and git reflog are the three commands that will tell you where the pointers really are.
Sources for the extension details in this chapter: the VSCode source control documentation and the version 1.94 release notes, the GitLens Community vs Pro comparison, the discussion about retiring Git Graph, Git Graph Plus, the GitHub Pull Requests extension repository, Conventional Commits for VSCode and the GitHub Actions extension announcement.