JetBrains Rider 2017.3 Help

Typing Assistance

File | Settings | Editor | General | Typing Assistance for Windows and Linux
JetBrains Rider | Preferences | Editor | General | Typing Assistance for macOS
Ctrl+Alt+S settings


On this page or JetBrains Rider options, you can configure various typing assistance features.

ItemDescription
Typing assist
Use CamelHumps Enables CamelHumps for the following actions:
  • Extend/Shrink Selection (Ctrl+Alt+Right / Ctrl+Alt+Left)
  • Caret Move (Ctrl+Right/Ctrl+Left)
  • Caret Move with Selection (Ctrl+Shift+Right/Ctrl+Shift+Left)
  • Select Word at Caret (Ctrl+Alt+Right)
  • Delete to Word Start/End (Ctrl+Backspace and Ctrl+Delete respectively)
  • Double-clicking (if Honor "CamelHumps" word settings when selecting using double click is enabled on the Editor | General settings page).
If this check box is selected, the words that compose CamelHumped names are taken into account when you use these actions.

JetBrains Rider also provides similar actions that work in a mode opposite to the one selected in the Use CamelHumps setting:

  • Move Caret to Previous Word in Different "CamelHumps" mode
  • Move Caret to Previous Word with Selection in Different "CamelHumps" mode
  • Move Caret to Next Word in Different "CamelHumps" mode
  • Move Caret to Next Word with Selection in Different "CamelHumps" mode
  • Delete to Word End in Different "CamelHumps" mode
  • Delete to Word Start in Different "CamelHumps" mode

For example, If Use CamelHumps is enabled, the action Move Caret to Next Word in Different "CamelHumps" mode moves the caret to the end of word regardless of uppercase characters in this word; if Use CamelHumps is disabled, then the caret moves to the next CamelHump within this word.

These actions have no default keyboard shortcuts, and are not included in the menus but you can invoke them from Go to Action (Ctrl+Shift+A):

Alternative actions for CamelHump navigation

You can bind them with the shortcuts of your choice as described in the section Configuring Keyboard Shortcuts.

Auto-format on closing brace If this check box is selected, JetBrains Rider applies code formatting rules to the block of code when you type its closing brace.
Auto-format on paste This selector lets you configure whether to apply code formatting rules for pasted code. By default, JetBrains Rider only applies indentation settings when you paste code, which is a convenient option if you do not want to follow formatting rules very strictly.
Correct common language-specific typos If this check box is selected, JetBrains Rider automatically fixes mistyped characters - @$ in verbatim string interpolation or dot or semicolon inside parentheses.
You may want to clear this check box if you prefer to specify double values without the leading zero, e.g. DoSomething(.33);.
Smart indent on Enter If this check box is selected, each time you press Enter in the editor, JetBrains Rider will calculate the indent for the next line taking into account all settings that affect indentation, e.g. whether and how to use tabs (configurable on Code Editing | General Formatter Style), whether to align chain method calls (configurable on Code Editing | C# | Formatting Style | Other), etc.
If this check box is cleared, the next line will be aligned according to Visual Studio settings.
Insert * on Enter after /* If this option is enabled, JetBrains Rider will insert the asterisk * in the beginning of each line of a block comment as you press Enter.
Braces and Parentheses
Surround selection on typing a brace or parenthesis If this check box is selected, you can select a code block or an expression, then type an opening { or a closing } brace to put the selection inside braces, or type an opening ( or a closing ) parenthesis to put the selection inside parentheses.
Auto-insert pair brackets, parenthesis and quotes If this check box is selected, a closing bracket, parenthesis or quote is automatically created whenever you type the corresponding opening element [, (, " or '. If you change your mind and press Backspace to delete the opening delimiter, its closing pair is also deleted.
Auto-insert closing brace If this check box is selected, a closing brace is inserted automatically:
  • Immediately after you've typed the opening brace (On typing an opening brace)
  • After you've typed the opening brace and pressed Enter (On Enter after an opening brace)
Structural navigation
Use Tab/Shift+Tab keys for structural navigation This check box enables Structural Navigation and overrides the behavior of Tab and Shift+Tab. There are also three sub-options that allow you to specify when the standard behavior of these keys should be preserved.
C#
Annotate nullability on '!'/'?' after type name When this option is enabled, JetBrains Rider will automatically add the [NotNull]/ [CanBeNull] annotations when you type '!'/'?' after a type name in a method signature or member declaration. E.g: if you type public void Foo(string?, JetBrains Rider will automatically convert it to public void Foo([CanBeNull] string.
Annotate nullability on '!'/'?' after entity name When this option is enabled, JetBrains Rider will automatically add the [NotNull]/ [CanBeNull] annotations when you type '!'/'?' after a name of the declared symbol or parameter in a method signature or member declaration. E.g: if you type public void Foo(string myStr?, JetBrains Rider will automatically convert it to public void Foo([CanBeNull] string myStr.
Insert parameter null check on '!' after type or type name... If a parameter is marked with the [NotNull] attribute, you can set the caret directly after the parameter name or parameter type and press !:
private void Foo([NotNull] object/*!*/ arg/*!*/)
JetBrains Rider will generate a null check for this parameter. You can configure the null-check pattern on the Code Editing | C# | Null Checking page of JetBrains Rider settings (Ctrl+Alt+S).
VB.NET
Insert end constructs If this check box is selected, JetBrains Rider will automatically add a matching end construct when you type the opening part. For example, when you type Sub, End Sub will be added automatically.
HTML
Auto-format on enter If this check box is selected, JetBrains Rider applies code formatting rules to the recently typed code after you press Enter.
Auto-format on closing tag If this check box is selected, JetBrains Rider automatically formats recently added code after you type the closing tag of an element.
Synchronous changing of matching tag If this check box is selected, JetBrains Rider simultaneously changes the closing tag when you are editing the opening tag of an element and vice versa.
ASP.NET
Auto-format on enter If this check box is selected, JetBrains Rider applies code formatting rules to the recently typed code after you press Enter.
Auto-format on closing tag If this check box is selected, JetBrains Rider automatically formats recently added code after you type the closing tag of an element.
Synchronous changing of matching tag If this check box is selected, JetBrains Rider simultaneously changes the closing tag when you are editing the opening tag of an element and vice versa.
Razor
Auto-format on enter If this check box is selected, JetBrains Rider applies code formatting rules to the recently typed code after you press Enter.
Auto-format on closing tag If this check box is selected, JetBrains Rider automatically formats recently added code after you type the closing tag of an element.
Synchronous changing of matching tag If this check box is selected, JetBrains Rider simultaneously changes the closing tag when you are editing the opening tag of an element and vice versa.
Miscellaneous
Home When this checkbox is selected, on pressing Home, the caret is positioned at the first non-space character of the current line. Pressing Home subsequently moves the caret from the Smart Home position to the first column and back.
End (on blank line) When this checkbox is selected, on pressing End in an empty line, the caret is positioned with the indent, which JetBrains Rider assumes to be reasonable in the current code point (indentation is based on the current Code Style Settings).
Surround selection on typing quote or brace If this checkbox is selected, the selected text on typing a quote, double-quote or brace, will be surrounded with these characters. If this checkbox is not selected, then the typed quotes, double-quotes or braces will replace the selection.
Add multiple carets on double Ctrl/ with arrow keys If this checkbox is selected, then:
  • pressing Ctrl (for Windows or *NIX) or (for macOS) twice plus up/down arrow keys leads to creating multiple carets.
  • pressing Ctrl (for Windows or *NIX) or (for macOS) twice plus left/right arrow keys or Home/End leads to creating a selection.
For more information, see the Multicursor section.
XML/HTMLIn this area, define the actions to be invoked automatically when editing XML or HTML code.
  • Insert closing tag on tag completion: select this checkbox to have JetBrains Rider automatically insert a closing XML or HTML tag upon entering the corresponding opening one.
  • Insert required attributes on tag completion: select this checkbox to have JetBrains Rider display a template with all mandatory attributes of the typed tag.
  • Insert required subtags on tag completion: select this checkbox to have JetBrains Rider display a template with all mandatory subtags.
  • Start attribute on tag completion: select this checkbox to have JetBrains Rider display a template with the first mandatory attribute of the typed tag.
  • Add quotes for attribute value on typing '=': select this checkbox to have JetBrains Rider automatically add quotes for the value of the attribute that you are currently typing.
  • Auto-close tag on typing '</': select this check box to automatically add a closing tag after entering </. Clear this checkbox to turn off such auto-completion.
  • Simultaneous <tag></tag> editing:
    • When this checkbox is selected and you edit an opening tag the corresponding closing tag is automatically changed accordingly.
    • If this checkbox is cleared, editing the opening tag does not affect the closing tag which remains unchanged. As a result, the opening and closing tags do not match and the entire construct is underlined as erroneous.

    This checkbox controls the behaviour of JetBrains Rider in the following contexts:

    • HTML files
    • HTML injections within JavaScript code
    • HTML with templates Handlebars/Mustache templates
    • Handlebars/Mustache template files with the extension .hbs
    • XML, XHTML files
    • DTD files
    • JSX files

CSSIn this area, define the selection of CSS identifiers/classes:
  • Select whole CSS identifier on double-click: If this checkbox is selected, double-click on a CSS identifier or class name selects the entire name up to the prefix:
    select css identifier

    If this checkbox is not selected, double-click on a CSS identifier or class name selects a portion of a name up to the nearest hyphens:

    select css identifier1
ASP.NET
Auto-format on enter If this check box is selected, JetBrains Rider applies code formatting rules to the recently typed code after you press Enter.
Auto-format on closing tag If this check box is selected, JetBrains Rider automatically formats recently added code after you type the closing tag of an element.
Synchronous changing of matching tag If this check box is selected, JetBrains Rider simultaneously changes the closing tag when you are editing the opening tag of an element and vice versa.
Override brace style for C# to always use "At end of line (K & R Style)" If this check box is selected, JetBrains Rider will always use Kernighan & Ritchie style brace layout in markup pages regardless of whatever style you’re using in code-behind.
JSON
Auto-fix colon to go outside quotes of JSON key By default, JetBrains Rider smartly completes your JSON keys when you type the colon (:) symbol. For example, as soon as you type colon here "someKey: JetBrains Rider converts it to "someKey" : so that you could quickly start typing a value.
You may want to clear this check box if colon (:) is a part of the key name in your JSON.
Auto-fix comma to go outside quotes of JSON value By default, JetBrains Rider smartly completes your JSON values when you type the comma (,) symbol. For example, as soon as you type comma here "someValue," JetBrains Rider converts it to "someValue", so that you could quickly start typing other values.
You may want to clear this check box if comma (,) is a part of a value name in your JSON.
Razor
Auto-format on enter If this check box is selected, JetBrains Rider applies code formatting rules to the recently typed code after you press Enter.
Auto-format on closing tag If this check box is selected, JetBrains Rider automatically formats recently added code after you type the closing tag of an element.
Synchronous changing of matching tag If this check box is selected, JetBrains Rider simultaneously changes the closing tag when you are editing the opening tag of an element and vice versa.
Override brace style for C# to always use "At end of line (K & R Style)" If this check box is selected, JetBrains Rider will always use Kernighan & Ritchie style brace layout in markup pages regardless of whatever style you’re using in code-behind.
Always remove 'this' qualifier (override the corresponding C# setting) If this check box is selected, JetBrains Rider will always remove this qualifier from members when reformatting your code. Otherwise, this qualifier is treated according to the settings configured on the Code Editing | C# | Code Style page of JetBrains Rider options.
XAML
Synchronous changing of matching tag If this check box is selected, JetBrains Rider simultaneously changes the closing tag when you are editing the opening tag of an element and vice versa.
Auto-insert tag footer in code completion If this check box is selected, JetBrains Rider will insert the footer (closing) tag as soon as you apply any code completion. If unselected, the closing tag is inserted when you close the opening tag.
Use smart behavior for automatic code completion If this check box is selected, JetBrains Rider will apply Smart Completion as automatic code completion; if unselected, the Basic Completion is applied by default.
When working with XAML files, basic completion often provides too many completion suggestions, and smart completion suggestions are more helpful in most cases.
If this option is selected, you can use Ctrl+Space to fall back to the symbol completion and get more suggestions.
Expand namespace aliases in code completion If this check box is selected, full namespace names are shown in the completion list, otherwise, short aliases are shown.
Always create self-closed tags on code completion If this check box is selected, JetBrains Rider will insert self-closed tags whenever the code completion inserts new tags. Otherwise, a pair of opening and closing tags is created
SQL Insert string concatenation on Enter. You may want to turn this option off, if the DBMS you are working with supports multiline string literals:

Say, there is the following fragment for PostgreSQL text value notes:

SET notes = 'Lightest element'

and the cursor is in front of the word element.

If the option is on, and you press Enter, the fragment will change to:

SET notes = 'Lightest ' || 'element'

Otherwise, the fragment will change to:

SET notes = 'Lightest element'
Qualify object on code completion. The selected option defines how the name of an object is inserted in the editor when using the code completion suggestion box.

  • Always. The qualified object names are always used, i.e. <schema_name>.<object_name>.
  • On collisions. The qualified object name is used only if the short name is ambiguous, e.g. when there is the object with the same name in more than one schema.
  • Never. The unqualified object names are always used.
Last modified: 19 April 2018