Pycharm doesn't open branch at checkout
Hello,
When I check out a branch from a Git repository the new branch doesn't open in a new tab automatically. If I click the file in the project explorer it is indeed the correct branch, I would just like to have it open the branch I check out in a new tab. I've previously had Pycharm do that and other people have too. I have no idea why it doesn't do it any longer.
Please sign in to leave a comment.
Do you mean that PyCharm should keep track of the opened tabs for each branch and switch them along with the branch? If so, please make sure you have "Restore workspace on branch switching" enabled under Preferences | Version Control | Confirmation.
Otherwise, please specify the expected behavior.
I think we're talking about the same thing. Its basically that when I check out a branch, I would like to have that branch open in a new tab (I know we're talking quality of life, rather than real functionality here).
I have enabled that already. I tried unchecking and checking it again and it still doesn't open in a new tab.
Could you specify what do you mean by "opening a branch in a new tab"? Please describe the expected behavior in more detail.
When I check out a branch, I would like that branch to automatically open in a new tab along with my other open tabs. Previously pycharm did that when I checked out a branch. I don't know why it suddenly doesn't. To be clear, in the project folder it is the correct branch, I would just like to have that in a new tab automatically, instead of having to click that file in the project folder.
Please try the following test:
1. Checkout branch A
2. Open a set of tabs
3. Checkout branch B
4. Open another set of tabs
5. Checkout branch A again
Does the set of tabs from step 2 open up?