Search code examples
jetbrains-iderider

JetBrains Rider to stop opening diff tab on navigation


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?


Solution

  • 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