15

I am a huge fan of JetBrains Rider it is really adaptable to the tastes of most devs. I could not find settings to remove an annoyance from a specific navigation function.

Navigating on the tree view of the git changes opens up a new tab to show the selected file differences, this can also be triggered via shortcuts. It is really annoying to have to close it every time I tab out and back into Rider.

The file differences are also displayed besides the git navigation tree, so displaying a new tab just gets in the way.

Is there a configuration to disable the automatic display of this diff on a new tab?

The Fabio
  • 5,369
  • 1
  • 25
  • 55

2 Answers2

21

Following this blog post from JetBrains I did what they commended here:

After opening a project, press shift shift (Search Everywhere) and search for “Registry”. Next, start typing any of the following three switches to enable or disable things:

show.diff.preview.as.editor.tab – toggles the in-editor diff preview

I then disabled the show.diff.preview.as.editor.tab setting.

The diff tab no longer appeared

For newer versions, the setting is now show.diff.preview.as.editor.tab.with.single.click

Kevin Doyon
  • 3,464
  • 2
  • 33
  • 38
Lge
  • 234
  • 2
  • 2
  • disabling the "show.diff.preview.as.editor.tab" did it! thank you very much! could you please re-write your answer as a step by step instruction on how to disable this param (it is in your link). I will accept your answer once this is done – The Fabio Nov 25 '20 at 01:03
  • 5
    The setting is now called `show.diff.preview.as.editor.tab.with.single.click`. – Matt Mills Aug 17 '21 at 16:21
  • This answer doesn't seem to work anymore. Rider 2021.2 – HankScorpio Oct 07 '21 at 22:11
  • 2
    @HankScorpio: works fine for 2021.3. The original behavior renders the Commits windows unusable for me, it's annoying and distracting as hell. I know exactly what I'm doing and don't need diff most of the time. – Doan Van Tuan Dec 28 '21 at 01:46
8

It's actually quite easy to do that via the commit settings menu in 2022.2. Just click on the cog wheel and deselect "Show Diff Preview on Single Click".

Screenshot

The Fabio
  • 5,369
  • 1
  • 25
  • 55
Ocinano
  • 81
  • 1
  • 4