SCM: option to hide the branch name in the Repositories view
@lszomoru is already working on this.
Since Sep 19, 2026.
- Dominant language
- TypeScript
- Stars
- 193k
- Forks
- 42.7k
- PR merge metrics
- PR metrics pending
Description
The Source Control Repositories view shows the checked-out branch as the label of the checkout action, next to the repository name. I would like a way to turn that label off and keep the icon.
The branch name is already in the status bar, so in the repository row it is duplicated information. It only fits when the side bar is wider than I want to keep it. At the width I actually work at it renders as a fragment like dotnet-1…, and narrower still it collapses to a stub like d… that matches every branch starting with d. A fragment is no more useful to me than the icon alone — it still has to be hovered to be read — and it takes width from the repository name, which is the part I read at a glance.
Proposed: a setting such as scm.repositories.showBranchName (default true, matching today's behavior), which renders the checkout action as icon-only when disabled. The action, its hover, and its click target all stay as they are.
@lszomoru — would you accept a PR for this? I know you closed #277120 saying a setting was not warranted, because the checkout and sync actions now shrink to the icon so they no longer crowd the repository name. That fixed the crowding, and it does look better. It does not address this, though: I am not asking for the branch name to fit, I am asking not to have it there at all. That question has not been raised on the earlier issues — #271679, #206718, and #101251 all argued for making the branch name more visible, which is the opposite request.
Drafted by Claude (Anthropic AI assistant).
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.