Look and feel
- You can change JetBrains Rider keyboard bindings for any action: press Ctrl+Alt+S and go to .
- While in the editor, press Alt+Enter and then start typing the name of a JetBrains Rider command that you want to execute (more...).
Coding in the editor
- As soon as you've typed a method signature, e.g.
public void Foo(string input, press Ctrl+Shift+Enter to insert all syntax elements that should follow and get in the position where you can continue typing (more...).
- Do you want to surround some code with a
try...catch? Select a logical code block with Ctrl+Alt+Right, press Alt+Enter and then choose a template under Surround with....
- You can select a block of code and use Ctrl+Shift+Alt + Arrow keys to move this block around (more...).
- You can view recent clipboard entries with Ctrl+Shift+V and select the one you want to paste.
- Enum completion will automatically insert the Enum type as the prefix. No need to spell it out!
String.Format, you can add a placeholder where the cursor is. Just hit Alt+Enter and choose Insert format argument (more...).
- If a string literal is too long, hit Enter and JetBrains Rider will automatically put the part of it to the next line and insert the
+sign. Delete the
+and the string parts will be back together (more...).
- Moving a property up 3 lines using cut/paste? There is a simpler way to do it: place your cursor on the property, press Ctrl+Shift+Alt and use the up arrow key.
- Check out other typing assistance features.
- Using [NotNull] and [CanBeNull] attributes can help you find
NullReferenceExceptioneven before running your code.
- Bothered with a highlighted code issue? Press Alt+Enter while you at the highlighted code and select Inspection [name of inspection], then you can choose to suppress the issue with comment or attribute or disable the corresponding code inspection.
- You can suppress all inspections with a single comment — mark code with
// ReSharper disable Alland JetBrains Rider will not complain about anything until it meets the corresponding
// ReSharper restore All.
- JetBrains Rider's solution-wide analysis resolves visibility issues: you'll see if an internal member is used outside of its assembly and you'll never miss a single unused non-private member.
- You can exclude files by masks from code analysis on the page of JetBrains Rider settings (Ctrl+Alt+S).
- You can go to the next/previous code issue in the file by pressing Alt+Page Down / Alt+Page Up.
- You can press Ctrl+T to quickly locate a type, method, or basically everything, while Ctrl+Shift+T lets you locate files without other suggestions.
- Place your caret on the
importif you work with VB.NET) directive and press Shift+F12. JetBrains Rider will show where exactly this namespace is used (Finding Usages of a Symbol).
- Forgot where you were editing just now? Go to last edit location with Ctrl+Shift+Backspace.
- Want to locate where the current symbol is declared real fast? Press F12 or just right-click the symbol.
- When locating
CustomerServicesTestusing Ctrl+T or any other navigation command, you don't need to type the whole thing. Just use CamelHumps and type
- Alt+Home takes you to the base type and Alt+End takes you to inheritors of the current type.
- Do you want to move to the next member in a class? Alt+Down will take you there; Alt+Up will bring you back (more...).
- Search for anything (usages, implementations etc.) fetches to the Find Results window. Use it then to navigate between search results with Ctrl+Alt+Down/Ctrl+Alt+Up (more...).
- To explore the stack trace that is currently in your clipboard, just press Ctrl+E, T.
- Do you have multiple classes in the same file? Fix it fast. Press Ctrl+Shift+R on the file in the Solution Explorer and choose Move Types Into Matching Files (more...).
- Rename anything, anytime, anywhere with Ctrl+R, R. You can do it even in fewer steps - just type in a new name and hit Alt+Enter.
- You can extract a method from a section of code using Ctrl+R, M.
- Type in new method signature (change the number or type of parameters, change the return type) and while the signature is highlighted with a grey frame, hit Alt+Enter to apply the Performing the refactoring in-place.
- Placing your caret on a property, you can press Alt+Enter to change it from auto-property to a property with a backing field and vice-versa (more...).
- Press Ctrl+R, S to change the signature of a method and see a preview before applying it. JetBrains Rider will do the rest!
- Generate various class members in seconds using the Generate command (Alt+Insert).
- Alt+Insert in the Solution Explorer can create files from your file templates .. and folders too.
- Create event subscriptions in XAML/ASP.NET WebForms/VB.NET using Alt+Insert and choosing Generate event subscriptions.
- If you place your caret on a parameter in the constructor and hit Alt+Enter, JetBrains Rider can create a field or property and initialize it for you.
foreachand hit TAB. JetBrains Rider will start a live template for smart loop generation with type and name suggestions.
- Use Ctrl+U, L to run all unit tests in the solution (more...).
- Want to run some particular tests? Select them in editor, right-click and choose Run Unit Tests (more...).
- Start typing in the Unit Tests window to filter your tests by name.
- Filter to failed tests while running them in the Unit Tests window to see them pleasantly disappearing as they pass (more...).
ASP.NET and ASP.NET MVC
- In ASP.NET MVC applications, type
return View("and press Ctrl+Space. IntelliSense will list all available views.
rtaand press TAB. Fill in controller, then action arguments. Now it should be in correct order with IntelliSense!
- Want to check for missing Views in ASP.NET MVC? Turn on solution-wide analysis.
View("Login")will show as red if the Login.aspx is not there.
- You can use the Go to File Member command in ASPX/Config files too. Press Alt+\ and look it up!
Last modified: 20 August 2018