resharper-rider-samples

by JetBrains

Simple interactive exercises to help learn ReSharper and Rider

145 Stars 85 Forks Last release: Not found Apache License 2.0 166 Commits 0 Releases

Available items

No Items, yet!

The developer of this repository has not created any items for sale yet. Need a bug fixed? Help with integration? A different license? Create a request here:

official project

ReSharper/Rider Workshop

In these materials, you'll learn about many of the features and productivity enhancements available in ReSharper and Rider.

It provides step by step exercises for navigation, editing, inspections, refactoring and more. While it doesn't cover EVERY feature in ReSharper and Rider (we like to have some surprises), it does give many, many useful tips and tricks to both beginners and long time users.

Each exercise also introduces the keyboard shortcuts that can be used to work with ReSharper and Rider more efficiently. Should you want to see all the shortcuts in one place, you can download a keyboard shortcut cheat sheet from our website.

The workshop is self-paced, meaning you can work your way through the exercises on your own, at your own speed. You can skip sections you're already familiar with (although you might miss some useful tips!), and can work on the exercises in any order.

Getting started

Simply get a copy of the repo (clone or download straight) and open the

resharper-rider-samples.sln
in Visual Studio or Rider. It is recommended to build the solution at least once before starting, as this will restore various NuGet packages used by some of the exercises (many exercises do not require compiling, such as navigation and editing, but others require compiling code, or referencing third party assemblies, such as unit testing and ASP.NET MVC support)

The exercises are structured into numbered solution folders. Each folder contains one or more projects, and the exercises themselves are usually described in comments inside the source to these projects. Simply open the files and work through the exercises at your own pace.

The exercises are:

  • 00-EssentialShortcuts
    - introduces the handful of keyboard shortcuts you need to know in order to get started with ReSharper. These shortcuts invoke the "entry points" to the majority of ReSharper and Rider functionality.
  • 01-Navigation
    - demonstrates the various ways of navigating around your codebase, looking at Go To, Find Usages, navigating class hierarchies and more.
  • 02-Editing
    - exercises for editing your code, including code completion, completing statements, rearranging code, etc.
  • 03-Inspections
    - an introduction to the many code inspections that ReSharper and Rider provide, seeing how they can find potential issues with your code, and how to fix them, and manage them. Also looks at the very powerful value tracking analysis feature.
  • 04-Refactoring
    - exercises to see how ReSharper and Rider supportsrefactoring your code base, from simple renames to introducing and inlining variables, to extracting classes, moving members up and down type hierarchies and more.
  • 05-LanguagesAndFrameworks
    - a large part of ReSharper and Rider functionality applies to all languages that ReSharper supports. However, ReSharper and Rider also provides specific support for certain frameworks and languages, such as asp.net MVC, XAML or regular expressions.
  • 06-UnitTesting
    - exercises to show how ReSharper and Rider support unit testing
  • 07-LiveTemplates
    - looks at the powerful text snippet expansion, with interactive macros and editable hotspots. Also looks at creating files and surrounding selected text based on templates.
  • 08-StructuralSearchAndReplace
    - learn how to use ReSharper and Rider's very powerful search and replace functionality that is based on code patterns rather than text.
  • 09-Tools
    - useful tools, such as code cleanup, stack trace explorer and the To Do explorer.

Shortcuts And Actions

Through out this guided experience, you will see "shortcut" tags. These tags include the official name of each action and can be found using the the

Find Action...
feature of your IDE. Reference your preferences to find out what that shortcut is, but here are a few known shortcut combinations:
  • ReSharper Keymap on Windows:
    Ctrl + Shift + A
  • Visual Studio Keymap on Windows:
    Ctrl + Shift + A
  • Visual Studio Keymap on macOS:
    Command (⌘) + Shift (⇧) + A

The Keymap reference guide is also available online :

  • Rider: https://www.jetbrains.com/help/rider/ReferenceKeymapRider.html
  • ReSharper: https://www.jetbrains.com/help/resharper/Reference_KeyboardShortcuts.html

Open Source

The workshop is Open Source, licensed under the Apache 2 license. If you would like to contribute to the workshop materials, please feel free to fork the repo and send us a pull request. Or if you have a comment, question, or suggestion for improvements, please raise an issue.

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.