If you are coding C# inside visual studio, and you have a multiline comment, thusly:
/*
This is a very interesting comment
that consists of multiple lines
*/
Then if you are inside the comment, like after the word "comment" in my example, and you hit enter, Visual Studio adds a "* " on the new line and places your cursor even with the "*" that started the comment.
I hate this behavior. It is never what I want. Any way to turn it off? I wandered through the editor options but I couldn't find it.
Strangely enough this behavior is tied to XML doc comment generation in the C# editor. If you disable XML doc comment generation it will also disable the auto-generation of the *
in multi-line comments
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With