How to stop the same file from opening in multiple tab groups

Hello.

I generally work with 3 tab groups split via 2 vertical splitters. I keep a lot of files open and get used to which group each is in.

Since the majority of tabs are hidden I find it easiest to use the fuzzy filename search (cmd-shift-o). It's great.

Except - every now and then instead of taking me to the already-open tab, it'll open a duplicate of what's already open in a different group. Sometimes that file is even already open an active in one of the other groups so when I start editing the file I also see it being updated realtime right next to the file I'm typing in.

I'm aware of cmd-E to toggle the Recent Files list but it's never as reliable (even with expanding its history) as good ol cmd-shift-o. I've spent most of my jetbrains years in Rubymine and don't recall that ever happening.

Please please tell me there's a setting in Rider to not allow duplicates of the same file to be open at the same time. Please?

thanks

3 comments
Comment actions Permalink

Hi,

Unfortunately, this is expected behavior: https://youtrack.jetbrains.com/issue/IDEA-224763

Feel free to file a request for a setting to change this.

0
Comment actions Permalink

Hi Arseniy, I'm less concerned with the default being what that task is about than the issue of the same file being open in more than one window/tab grouping.

For example, in his task, he writes "I need to close it first, go back to my main editor, select the file with Switcher (yes I like Switcher), hold shift and double click on it."

The way it's currently working he wouldn't have to close the existing file in his Window 1 because a duplicate would open up in Window 2. Then what happens is while typing in the file in Window 2 you see the changes real time to that file in Window 1, as it's still open there. Is that also by design? I could get used to the file moving around, it just seems the worst of either choice when I now have two instances of the file open.

Thank you

0
Comment actions Permalink

> while typing in the file in Window 2 you see the changes real time to that file in Window 1, as it's still open there. Is that also by design? I could get used to the file moving around, it just seems the worst of either choice when I now have two instances of the file open.

Could you please clarify, do you mean that when you have two files opened simultaneously, and you edit one of them, you wouldn't expect the changes to appear immediately in the second file?

0

Please sign in to leave a comment.