问题
When I switch between files (Using ctrl-n for examples) in different editors, intellij always opens the file in the original editor the tab for the file is located. Coming from a vim background this seems counter intuitive for me. Is there a way to force intellij to always open the file in the same editor window?
回答1:
Please vote for the following related issues:
- IDEA-67559 Opening a file when there are multiple file groups may re-open in a different group rather than opening in the current group
- IDEA-81628 Navigation within same file mistakenly leaves split editor
回答2:
When using Ctrl-Shift-N to open the desired file, Shift-Enter to confirm will maintain the focused tab group.
来源:https://stackoverflow.com/questions/13921119/how-to-always-open-file-in-the-same-editor