Typing Assistance
for macOS
Ctrl+Alt+S
On this page or JetBrains Rider options, you can configure various typing assistance features.
Item | Description |
---|---|
Typing assist | |
Use CamelHumps | Enables CamelHumps for the following actions:
JetBrains Rider also provides similar actions that work in a mode opposite to the one selected in the Use CamelHumps setting:
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): You can bind them with the shortcuts of your choice as described in the section Configuring Keyboard Shortcuts. This check box does not have any impact on how CamelHumps works in Code Completion (IntelliSense) or in Navigation and Search commands. |
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. Even if auto-formatting or auto-indenting on paste are enabled, you can paste code without reformatting it: press Ctrl+Z right after pasting, and only formatting will be undone. |
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 ), whether to align chain method calls (configurable on ), etc. If this check box is cleared, the next line will be aligned according to Visual Studio settings. |
Braces and 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:
|
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/*!*/) |
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 check box 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 check box 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 check box is selected, the selected text on typing a quote, double-quote or brace, will be surrounded with these characters. If this check box 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 check box is selected, then:
|
XML/HTML | In this area, define the actions to be invoked automatically when editing XML or HTML code.
|
CSS | In this area, define the selection of CSS identifiers/classes:
|
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 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 SET notes = 'Lightest element' and the cursor is in front of the word 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'
|