VS2022 + ReSharper broken keyboard shortcut for navigate to Solution Explorer

54 views Asked by At

I am using a fresh install of VS2022 (17.8.6) and ReSharper (2023.3.3). When editing a source file, the keyboard shortcut Ctrl + [, S does not behave as expected according to the docs. It should select the file currently being edited in the Solution Explorer. On my machine, all the command does is type a single 's' character into the editor.

Looking in Tools | Options... | Keyboard the shortcut is correctly bound to command SolutionExplorer.SyncWithActiveDocument.

I have also seen this problem in multiple previous versions of VS and ReSharper.

1

There are 1 answers

0
Hugh W On

The problem is as follows, according to a JetBrains issue. ReSharper installs a new keyboard shortcut for Ctrl + [ which is bound to command ReSharper.ReSharper_GotoContainingDeclaration. This gets in the way of the two-part shortcut Ctrl + [, S so it is never executed.

Solution:

  1. Go to Tools | Options... | Keyboard.
  2. Search for 'ReSharper_GotoContainingDeclaration'.
  3. Remove or replace its keyboard shortcut.