omsharp / BetterComments

A Visual Studio extension for better comments.
Other
70 stars 27 forks source link

Single line task comment tags are not styled, whereas multiline ones are #28

Open marklnz opened 5 years ago

marklnz commented 5 years ago

Installed product versions

Description

Single line TODO comments do not color the TODO tag with the style defined in the BetterComments configuration for task comments. A Multiline formatted comment that is closed on the same line ( e.g. / TODO: some comment /) also behaves the way a single line comment does, in that the TODO tag is not colored. Multiline comments which span more than one line do style the TODO tag however.

Steps to recreate

With BetterComments installed, paste the following into a C# code file:

// TODO: A single line comment
/* TODO: A Multiline comment on one line */
/* TODO: A Multiline comment 
*/

Current behavior

Tag coloring is inconsistent between comments which span multiple lines and those which do not. Here is an example, from VS 2017 Professional.

image

Expected behavior

The task tag text (TODO) should be consistently styled regardless of whether the comment spans more than one line.