Usage Execute Copy name of current branch command from Command Palette ??? PROFIT Alternatively you can assign a keyboard shortcut to command extension.copyBranchName.