Bind Method Call Arguments by Name

You can easily convert the argument bindings of a method call from positional to named.

Place the cursor on a method call and press Ctrl+1, select Bind method call arguments by name from the list of quick assist proposals and press Enter.

../../_images/sv_quick_assist_refactor_function_call_to_named_args.png

The argument bindings of the method call are converted to named.

../../_images/sv_quick_assist_after_bind_arg_by_name.png

Tip

You can also Right-Click in the editor and go to Refactor > Bind Method Call Arguments by Name.

../../_images/sv_quick_assist_refactor_function_right_click_2.png