ReSharper 2020.1 Help

Peek Definition

Starting from Visual Studio 2013, the Peek Definition feature is available in the editor. It allows you to see source code of a referenced symbol without opening a new tab. With ReSharper, this feature works a little bit different:

  • You can Ctrl+Shift-click usages of symbols to display their declarations in the Peek Definition view. If you want to disable this, clear the Use Ctrl+Shift click to open the result in the peek view checkbox on the Environment | Search & Navigation page of ReSharper options (Alt+R,O).

  • All navigation features are available in the peek definition view. For example, you can invoke the Navigate To command Ctrl+Shift+G. All navigation results are shown within the same peek definition view.

  • If the target symbol is defined in your solution, ReSharper performs code inspection and provides quick-fixes in the peek definition view:

    Code inspection in the peek definition view
    If you modify code, the file is reanalysed.

  • All refactorings are available in the peek definition view. You can press Ctrl+Shift+R to check the list of available refactorings.

  • You can close the definition window by pressing Esc and switch between the editor and the definition window by pressing Shift+Esc.

Last modified: 2 July 2020