omsharp / bettercomments Goto Github PK
View Code? Open in Web Editor NEWA Visual Studio extension for better comments.
License: Other
A Visual Studio extension for better comments.
License: Other
Hey, I would like to specify case-sensitive in the settings for a specific tag, e.g.:
"tag": "todo",
"color": "#FF8C00",
"strikethrough": false,
"underline": false,
"backgroundColor": "transparent",
"bold": false,
"italic": false,
"case-sensitive": true
Cannot change default colors. It looks like your defaults assume a dark theme
)
So I am trying to change them to make it more useful for a light them. I looked at your directions, however they do not seem to work
If you look at the image, there is no option for Text Editor and if I click on "All Text Tool Windows" I do not see any options to update Better Comments. Please consider adding the settings directly into the better comments property screen.
I often use a --- comment header to do a sort of header comment. "---" should be a formatable comment type.
//---Comment Area
//Code
//---
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.
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
*/
Tag coloring is inconsistent between comments which span multiple lines and those which do not. Here is an example, from VS 2017 Professional.
The task tag text (TODO) should be consistently styled regardless of whether the comment spans more than one line.
dasdasagfad im sorry
I really like the idea of your extension. While trying it out I noticed that the standard comment tokens HACK and UNDONE are not yet handled. Furthermore users can add custom tokens by their-self in the options dialog.
I would appreciate if you add the default tokens in a feature version.
More details about comment tokens: https://blogs.msdn.microsoft.com/zainnab/2013/08/15/visual-studio-2013-todo-comments-and-custom-tokens-in-the-task-list/
Should be able to set the important comment underline decoration on and off in the options page.
The underline decoration stays applied even when it's set off in the options page.
When the option's checkbox is unchecked the underline decoration should be removed.
It would be neat to have an option to highlight lines with tasks/notes in the scrollbar, like Visual Studio's search results, errors and suggestions.
I really would love to have BetterComments on IntelliJ base IDEs, is there an intelliJ version planned?
[Originally requested by @IceSentry]
User defined comment classifications/custom keywords.
When I change something on the options page and then cancel, the settings are not discarded and still apply.
When cancel button on the options page is clicked, all the unsaved settings are still applied.
When cancel button on the options page is clicked, all the unsaved settings should be discarded.
In Python source, the first 3 characters of a comment are grayed, or maybe a different opacity.
See Description.
Entire comment is the same color and opacity.
The first image in the description has a black spot for some reason. you might want to consider changing it to a new image.
Everything works just perfectly fine, even 'x as Comment will strike the comment through. However if I double comment it with '' it just doesn't work. That's rather inconvinient, cause we use that to mark old code and with a double comment we can easily re-insert whole blocks
Comment is neither gray nor striked through
Comment should be gray (or whatever I defined the color as) and be striked through
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:
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.
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.
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.
Are there new fixes being made that just aren't being pushed here anymore? I've seen updates to the extension several days in the past month, but no updates there to know what's being changed.
https://marketplace.visualstudio.com/items?itemName=OmarRwemi.BetterComments
My company's standard for comments makes keywords not work as expected:
// NOTE: this does not highlight as expected if the keyword is defined without a leading space like
// this " note"
// TODO: does not work even with a leading space in the keyword definition, like " todo"
//note: this comment highlighting should function the same as
// note: this comment's.
When the Color only the 'Todo' keyword (Task Comments)
option is selected, only the first four characters of a TODO comment are highlighted correctly. For example (^ indicates the task highlight):
//TODO create a banana smoothie
^^^^
// TODO drink that delicious smoothie
^^^^
// TODO wipe off your milk moustache
^^^^
Color only the 'Todo' keyword (Task Comments)
option in Tools -> Options -> Better Comments -> Font OptionsOnly the first four characters are highlighted, including whitespace, and so the end of the task word is not highlighted.
The task word (Todo), the whole task word, and nothing but the task word should be highlighted.
I would be happy to create a fix/PR, but will probably be too busy until June because of finals.
Can you make a build available for VS "15"
This is more of a wishlist feature than essential, but would be extremely powerful: I'd like ability to add custom named, Regex matching patterns to create new styles.
This would depend on Feature #25 to be completed first, or there's really no point.
I installed the Better Comments successfully.
But the Better Commens does NOT work at Visual Studio Express 2017 for Windows Desktop.
Downloaded the Better Comments install program at below URL
http://vsixgallery.com/extension/BetterComments.Omar%20Rwemi.e985519f-8696-40b7-9400-807054b4ec76/
After install the Better Comments, run the VS Express 2017 for Windows Desktop.
But the Better Commentsdoes NOT work.
You can see below error and issue.(VS is Korean Version)
I installed the Better Comments successfully.
But in the code, the Better Comments does NOT work.
I want the Better Comments works at the Visual Studio Express 2017 for Windows Desktop also.
I wounder why dont support c# function comments like
/// <summary>
//todo this is a todo
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
Please add a customizable coloring option so people can see the text's color difference better.
People can always use different themes and they can have a hard time while differentiating the comment with other colored text, background, and other extension text popup etc.
And I personally just don't like the color.
The extension's options do not display correctly in the VS Tools|Options dialog. All checkboxes are missing their labels; the dropdown list is missing its items.
None of the extension's options have text labels and the dropdown list is missing all items.
The options should have text labels and the dropdown list should have items.
Settings menu doesn't have labels. Can't see the text.
Doesn't show the labels' texts.
Dialog should show what the text are.
Works fine with .html
But does not work with .js files.
What could be the problem?
Rreinstalled a couple of times, experimented with the settings, it does not help.
Does not work with .js files
should works:)
VS and VSCode is my most code tool.
seems that the aaron-bond/better-comments/
and /omsharp/BetterComments
have the similar rules , it will be better fi compatible with each other on rule
:D
Instead of coloring the entire comment it would be nice to have the option to only change the color of the keyword. For example, "//TODO: ..." instead of coloring everything yellow only color the "TODO:" part of the comment.
[Edit by @omsharp : The user defined classifications feature request is moved to it's own #8 ]
I'm not sure entirely how this works, but also letting user define custom keywords would be a nice feature to have. This might be a visual studio specific thing though.
I can try to implement this myself, but I don't really have any experience with extension making for visual studio.
Is there a version of this extension available or being worked on that is supported in Visual Studio 2022? I love this extension, but the current version in the Marketplace does not seem to support 2022.
Thanks!
It would be great if it was possible to customize the 4 different keyword...
Like for example :
! => note
? => question
todo => todo
x => suppress
if we could have a new tab in the options to change them...
Thanks in advance
There is a very useful and interesting feature that allows you to display images in comments, such as image-comments,However, this extension has not been updated for a long time and does not support vs2019.
So, if you can integrate into this plugin, it would be great.
Thanks for your work
Options text is missing/does not show next to option boxes.
No descriptive name/titles are displayed for options.
Options should have descriptive names/titles.
It would be much more useful if we could add a variety of additional custom keyword patterns. Having only four possible options is pretty limited!
When I opened a Razor view in my solution, I received a Visual Studio error dialog indicating something went wrong with an extension and to check the Activity Log. Here's a portion of the log:
System.ObjectDisposedException: Cannot access a disposed object. Object name: 'TagAggregator'. at Microsoft.VisualStudio.Text.Tagging.Implementation.TagAggregator`1.GetTags(NormalizedSnapshotSpanCollection snapshotSpans) at BetterComments.CommentsTagging.CommentTagger.GetTags(NormalizedSnapshotSpanCollection spans) in C:\projects\bettercomments\BetterComments\CommentsTagging\CommentTagger.cs:line 56 at Microsoft.VisualStudio.Text.Tagging.Implementation.TagAggregator`1.<GetTagsForBuffer>d__38.MoveNext()
There are approximately 100 rows of this error recorded in the activity log.
I must note, however, that even though I received the error upon activating a Razor view document, that it may not be that particular document that caused the error--especially in light of the fact that there are no comments in the activated view.
Please see the Activity Log snippet above.
There should be no errors recorded in the Activity Log.
Somehow the colors of comments got lost. If I change in the options the colors of e.g. "Comments - Important" or "Comment - Task", the comments in the code are still shown with the default color. Worked before, maybe related to the update to version 2.0.47?
Please advice, many thanks!
Basically exactly what the titles says would love to be able to use this to help identify comments in my sql files.
Withing Visual Studio 2017, in the Extensions update window, there is a pop up window for a split second and disappears without any error message.
The VSIX only supports Visual Studio 2015.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.