Don't create asterisk for new lines within block comments in C#
In languages like C and C# you can create block comments like this /* ... */. When you press enter within one of these VS thinks it is being helpful by adding an extra space and asterisk like this:
This is really anoying! Every time I press return I then have to press backspace twice as well!
I am aware that this can be turned off unchecking the "Generate XML documentation comments for ///" option, but there are two things wrong with that: First I do want to create XML documentation and second the wording of that setting has absolutly nothing to do with block comments!
there is an option to enable or disable inserting asterisks on new lines in block comments in VS2015. Options > Text Editor > C# > Advanced > Insert * at the start of new lines when writing /* */ comments.
so this request can be closed.
Emery Noel commented
Please give us a separate option to disable auto-asterisk in block comments.
Jon Smit commented
Automation should always be optional with fine grained control over its optionality.
Mike Christensen commented
Most annoying feature ever!
actually adding asterisks at the start of each line in block comments is very common, and IMHO makes the comment more visible. I like it.
Martin Dobson commented
Why multi line comments generation is controlled by "XML documentation Comments" feature is beyond me, should be separate functionality.
Another thing I find pretty annoying is that when I comment out a line of code by adding a // at the beginning of the line and (sometime later) reformat the file, VS reformats the commented line so that the // is in line with the code, not the code.
This "feature" makes multi-line comments in C# utterly useless.