JetBrains Rider 2022.2 Help

Code completion (IntelliSense)

To get you familiar with JetBrains Rider's code completion features, here are some implementation basics:

  • The suggestion list of Automatic completion appears as soon as you start typing a new identifier. The suggestion list of Basic completion appears when you press Ctrl+Space.

  • Two other completion commands, Type-matching completion Ctrl+Shift+Space and Second basic completion Ctrl+Alt+Space apply advanced algorithms to add more items to the suggestion list.

  • By default, all JetBrains Rider's completion features support CamelHumps, that is you can type the initial letters of compound name parts and the name will appear in the list of suggestions.

  • When you use code completion over existing code items, you can either insert the selected completion suggestion before the existing item by pressing Enter or replace the existing identifier with the selected suggestion by pressing Tab. If necessary, you can change the default shortcuts on the Keymap page of JetBrains Rider settings Ctrl+Alt+S (look for the Choose Lookup Item and Choose Lookup Item Replace actions) .

  • You may want some types or namespaces not to be suggested, for example, if you have something similar to a system type in your solution, say MyFramework.MyCollections.List, but you are not actually using it. To exclude such items from the suggestions, add them to the Exclude from import and completion list on the Editor | General | Auto Import page of JetBrains Rider settings Ctrl+Alt+S.

    The format of the entries is Fully.Qualified.Name, Fully.Qualified.Name.Prefix*, or *Fully.Qualified.Name.Suffix. Generic types are specified as List`1.

  • When you select items in completion lists using keyboard, the selection will jump to the first item after the last item and vice versa. You can disable this behavior by clearing Cyclic scrolling in list on the Appearance and Behavior | Appearance page of JetBrains Rider settings Ctrl+Alt+S.

  • When choosing a method call from the completion list, by default JetBrains Rider automatically inserts a pair of parentheses ( ) and sets the caret between them. You can change this behavior with the Automatically insert parenthesis after completion option on the Editor | General | Code Completion page of JetBrains Rider settings Ctrl+Alt+S.

  • When a completion list is open, you can press Ctrl+Down or Ctrl+Up to close it and move the caret down or up in the editor.

  • You can access code completion settings right from the completion popup — click App actions more at the bottom of the popup and select Code Completion Settings.

  • JetBrains Rider can leverage machine learning models to rank most suitable items higher in the suggestions lists. You can toggle this behavior with the Sort completion suggestions based on machine learning checkbox on the Editor | General | Code Completion page of JetBrains Rider settings Ctrl+Alt+S, and optionally select languages where the ML-assisted completion should apply.

    When this feature is enabled, JetBrains Rider will send and receive statistics of completion choices at different caret positions to train and apply ML algorithms. The statistics are fully anonymous, they include no names of types or functions.

In this section:

Last modified: 07 July 2022