"show diff" keeps spawning new tabs
已回答
Essentially what the title says. If I hit ctrl+d on a given file, it opens the diff view in a new tab - fine. Now, if I later hit ctrl+d on a different file, or even on the same file again, it opens the diff view in yet another new tab, instead of reusing the one that is already there. This shouldn't be the case according to https://youtrack-production.pub.aws.intellij.net/projects/RUBY/articles/SUPPORT-A-3872/Git-diff-Show-Diff-vs-Show-Diff-in-a-New-Tab - the behaviour I am seeing should only happen with “open diff in a new tab”, but I 100% am getting it with the regular “show diff” as well.
请先登录再写评论。
Hello,
This is a known issue that we are already tracking as IJPL-77178 (https://youtrack.jetbrains.com/issue/IJPL-77178) —the regular "Show Diff" opening a new diff tab each time instead of reusing the existing one. Please feel free to follow, upvote, and comment there so you receive updates:https://intellij-support.jetbrains.com/hc/en-us/articles/207241135
One thing worth double-checking in the meantime: in Settings | Keymap, look at what Ctrl+D is bound to under Version Control. There are two separate actions, "Show Diff" and "Show Diff in a New Tab", and the second one is expected to open a new tab every time. It is worth confirming the shortcut is mapped to "Show Diff".
Thanks. I double-checked, but it definitely happens whether I choose “show diff” or “show diff in a new tab”. I commented on the issue as well, but it's been open for 3 years, so I'm not holding my breath..