I have a project folder structure like this : Code/Repo/<repo_folder_name>/..subfolders
and in the <repo_folder_name>
i have the hidden .git
folder because i cloned from Sourcetree to this folder .
Eclipse does show the current branch , but when i open this folder in Visual Studio Code , i know it must show the current branch name , in the bottom left side .
Does anybody know how to do this ? To show the branch name in Visual Studio Code ?
Thank you very much.
-- > I added Sourcetree`s bin folder to the PATH and now everything is working ok :D . Sourcetree uses embed git so you have to add it to the window path
Visual Studio displays the current branch in the selector at the top of the Git Changes window. The current branch is also available in the status bar on the bottom-right corner of the Visual Studio IDE.
This is a common issue and usually happens in VS Code IDE. Because Visual Studio Code sometimes doesn't update the branches automatically. In that case we have to manually fetch the branch for VS Code.
Assuming you have git installed all you do is go to View
->Show Status Bar
(as seen below). It will then show your current branch on the bottom of your current editor window.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With