Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Branch Name ValidatorNew to Visual Studio Code? Get it now.
Branch Name Validator

Branch Name Validator

Yashwanth Byalla

|
30 installs
| (0) | Free
A VS Code extension that enforces Git branch naming conventions. It ensures branches follow the required format (e.g., feature/branch-name, bugfix/issue-123) and prevents invalid names before creation. Ideal for teams maintaining consistent workflows! 🚀
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Branch Validator VS Code Extension

Download Branch Validator

Overview

Branch Validator is a VS Code extension that automatically validates Git branch names to ensure they follow a specific naming convention. The validation runs whenever you switch branches and before pushing changes.

Features

  • ✅ Automatic branch name validation when switching branches in VS Code
  • ✅ Prevents pushing from an invalid branch
  • ✅ Supports 20 branch naming patterns (see table below)
  • ✅ Works seamlessly with VS Code's built-in Git UI

Installation

  1. Open VS Code.
  2. Go to Extensions (Ctrl+Shift+X).
  3. Search for Branch Name Validator (or install manually by loading the extension).
  4. Click Install.
  5. Reload VS Code if needed.

Usage

  1. Open a Git repository in VS Code.
  2. Switch branches using the Git panel (Ctrl+Shift+G) or via the terminal.
  3. If the branch name is valid, a success message will appear.
  4. If the branch name is invalid, an error message will be displayed.
  5. The extension will also prevent pushing changes from an invalid branch.

How It Works

  • Real-time Validation: The extension listens for branch changes and validates them.
  • Push Interception: If the branch name is invalid, the push command is blocked.
  • Error Notifications: If an invalid branch name is detected, a notification appears in VS Code.

Supported Branch Naming Patterns

This extension enforces the following branch name formats:

# Type Example
1 Feature feature/login-ui
2 Bug Fix bugfix/issue-123
3 Hotfix hotfix/critical-crash
4 Release release/v1.2.0
5 Experiment experiment/new-model
6 Docs docs/api-documentation
7 Refactor refactor/database-queries
8 Perf perf/image-optimization
9 Test test/user-service-tests
10 Chore chore/dependency-updates
11 CI ci/github-actions-setup
12 Build build/webpack-config
13 Style style/css-formatting
14 Revert revert/login-feature
15 Deps deps/upgrade-lodash
16 Config config/eslint-rules
17 Develop develop
18 Master master
19 Main main
20 Releases releases

Made with ❤️ for better branch management!

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2026 Microsoft