Whenever I do "Ctrl + k + d" the method "()" gets separated by space with its method name like this var x = MyMethod_();
The underscore shows the space.
Whenever I do "Ctrl + k + d" the method "()" gets separated by space with its method name like this var x = MyMethod_();
The underscore shows the space.
You can edit it when searching for Formatting in the options menu.
Then go to Text Editor > C# > Code Style > Formatting > Spacing
Scroll down to Set spacing for method calls and disable "Insert spacing between method name and its opening parenthesis".
You can update the relevant settings here:
Tools > Options > Text Editor > C# > Code Style > Formatting > Spacing > Set other spacing options
Note, your .editorconfig
file (if exists) might override the local settings configured on that page which only apply to your machine.
It would be best to configure it in the .editorconfig
file which will be common to all engineers who use the repository.