Conventional Branch
Conventional Branch" is a tool designed to help standardize branch names in Git for teams working on large projects. The extension allows you to choose from several pre-defined templates, which can be customized to suit your team's specific needs. Once a template is selected, you can easily create new branches with standardized names directly from your IDE. This helps to avoid confusion and promote consistency in branch naming conventions across the team. With "Conventional Branch", you can spend less time thinking about branch names and more time focusing on your work. Usage
You can access VSCode Conventional Branch by using
How to Customize Branch Name TemplateGot to User Settings > Conventionl Branch > format
You can change the default format and keep in mind that these are reserved keywords in this template: Examples of templates:
How to add Conventional Branch setting to your Workspace SettingsIn .vscode > settings.json you can use conventional branch settings.
FeaturesBase thing we are using is a format which is by default:
Selector FieldsSelector Fields are the fields that you can select from the dropdown. Use Brackets for defining the selector fields. For example: Reserved Keywords:
|
Property | Description | Default Value |
---|---|---|
conventional-branch.type | An array that contains different type of branches. | ["feature","fix","hotfix","test","release"] |
conventional-branch.branchNameSeparator | Branch string must be separated by something. It could be space, dash or anything. | "-" |
conventional-branch.maxBranchNameLength | Set a maximum lenght for the branch name. | 50 |
conventional-branch.forceBranchNameLowerCase | A boolean that converts branch name to lower case | true |
conventional-branch.removeBranchNameWhiteSpace | Removes whitespaces from branch. | true |
conventional-branch.format | Format for creating branch. | "{Type}/{TicketNumber}/{Branch}" |
conventional-branch.minBranchNameLength | Minimum lengh for branch name. | 3 |
conventional-branch.forcedParentBranch | Force Branches to be created from this specific branch | null |