bracket-lens-vscode
bracket-lens-vscode copied to clipboard
Make annotations look similar to comments
Really nice extension, thanks for the great work!
When first installing the extension the annotations were a bit of a distraction. My solution to this was to make their appearance similar to regular code comments, by changing their color to a slightly darker green than the normal comment color and changing the prefix to // (as used in typescript to indicate comments).
The problem with this approach is that the comment color depends on the current color theme, and the correct prefix depends on the language of the current document.
Would it be feasible to change these settings automatically? It would be really nice, if the annotations looked similar to normal comments, so you don't have to think about their meaning when reading over your code.
Thank you for your high evaluation!
I have the same idea as you. In fact, the first idea for this extension was to make it the same color as the comment. However, it seems that there is no direct way to specify the color of the comment or get it and specify the same color easily in the API of VS Code, and which theme is currently selected and the comment in that theme is It seemed necessary to find out what color it was. It is expected to cost the same amount of implementation as this current extension, so I have forgotten it in v1.
There is a problem with making "prefix" a line comment native to that language. Line comments may not exist, or there may be more than one.
In any case, this extension requires the cooperation of each user in different languages and we would like to incorporate their voices.
I looked around and probably found the same discussions/answers as you -.-
An idea to make the annotations look like comments for most languages might be to use a list similar to this one (of course still giving the user the option to override). At least, the issue of accessing the languageconfig of the current language is already being discussed, so maybe we're lucky and accessing the comment characters (if present) might be possible in the future. And since the annotations are purely cosmetic, it doesn't cause any problems if the comment symbol is wrong in the unhandled cases...
Similarly, a list of the comment colors from the default themes might already work for many users (still having to manually select their theme though). And maybe an option to "tone down" the selected color to differentiate between actual comments and annotations.