omsharp / BetterComments

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

Multiline comment with changed background color #15

Closed marklnz closed 7 years ago

marklnz commented 7 years ago

Installed product versions

Description

First of all, I love this extension - it's the best of it's type that I've used. I like the support for multi line comment styling support in particular. However when doing a multiline TODO comment, which I've styled with a background color that's not the same as the editor background, the first line of the comment has the background color extended all the way to the left margin of the editor. The remaining lines do not. Additionally, the closing multi line comment tag (*/) is not highlighted/styled.

Here's an example:

image

The closing comment tag is unstyled regardless of whether it's on the same line as the last of the comments, or the next line.

Steps to recreate

  1. Change the background color of a comment style to be different to the color of the editor surface
  2. Add a multiline comment

Current behavior

The first line of a multi-line comment is highlighted all the way from the left margin to the opening cvomment tag, and the other lines are not. Additionally the closing comment tag is not styled at all.

Expected behavior

The first line of a multi-line comment should not be highlighted between the left margin and the opening cvomment tag, so that it is consistent with the other lines. Additionally the closing comment tag should be styled.

omsharp commented 7 years ago

Thanks for the feedback. I'm glad you like the extension and that you find it useful.

Strange behavior!

When using "todo" (all small) the background works perfect. image

If any of the letters is capital, then it behaves like described in this issue. image

There might be some kind of conflict between Better Comments's Task and VS's. Not sure though. I'll try to look into it.

omsharp commented 7 years ago

I found the problem. It's a bug in Better Comments and has nothing to do with VS. I'll ship an update as soon as I work it out.

marklnz commented 7 years ago

Works like a charm! :)