ReSharper for Visual Studio Code 2026.1 Help

Code Syntax Style: Named/Positional Arguments

If you prefer to use named arguments for specific types of parameters, ReSharper can help you enforce this practice.

Consider the following method call:

AddCheckbox(true, true, "AutoFill", null);

When you read this code, you have to stop and study the method signature to understand what happens here (you can do it either with the parameter information tooltip or by navigating to method declaration). With named arguments, the same call becomes much clearer:

AddCheckbox(enabled: true, value: true, label: "AutoFill", tooltip: null);

If you prefer to have named arguments for specific types, you can enforce this preference with the help of ReSharper.

ReSharper helps you arrange arguments in the existing code and takes your preferences into account when it produces new code with code completion and performs refactorings.

Apply style preferences for arguments

By default, ReSharper suggests using positional arguments everywhere, and you have to explicitly specify which types of parameters require named arguments. According to your preferences, ReSharper highlights positional arguments that require names or named arguments that should be positional, and suggests the corresponding quick-fix:

ReSharper: A quick fix that helps you add or remove argument names

Even if you do not have any style preferences for arguments, you can always press ⌥ ⏎ on any named or positional argument and choose to add or remove the argument name with the corresponding context action:

ReSharper: A context action to add or remove argument names

Configure preferences for named/positional arguments

You can configure syntax style settings via EditorConfig. These settings can be stored in .editorconfig files on different levels of your solution hierarchy. The files are normally put under VCS so that settings defined there are shared among the project team.

If you have used ReSharper for Visual Studio or JetBrains Rider on your computer, or have opened the current solution using these tools, ReSharper for Visual Studio Code will read and apply your syntax style settings from .DotSettings files. However, any settings configured via .editorconfig will take precedence.

Configure preferences for arguments style using EditorConfig

  1. Open the desired .editorconfig file.

  2. Add the required arguments style properties to the file. For example:

    arguments_literal = named
03 March 2026