Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Show git branch in Visual Studio Code

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

like image 616
123onetwothree Avatar asked Jun 19 '17 09:06

123onetwothree


People also ask

How can I see my Git branch in Visual Studio?

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.

Why Git branch is not showing in VS Code?

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.


1 Answers

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.

Menu Being Selected

like image 99
Marc Avatar answered Nov 16 '22 03:11

Marc