Zxynine / EvenBetterComments

My take on the better-comments extension which incorporates many pull requests and multi tag definitions
https://marketplace.visualstudio.com/items?itemName=Tion.evenbettercomments
MIT License
11 stars 1 forks source link

Even Better Comments

The Even Better Comments extension is based on the Better Comments extension which will help you create more human-friendly comments in your code.

Even Better Comments seeks to improve upon this framework by adding in aliases, documentation, default values, token parsing, commands, and other various improvements.

With this extension, you will be able to categorise your annotations into:

Annotated code

Configuration

This extension can be configured in User Settings or Workspace settings. evenbettercomments.enabled : true This setting will enable or disable the entire extension. When false, the entire extension will be disabled. (WIP)

"evenbettercomments.monolineComments": true
This setting will control whether monoline comments are styled using the annotation tags. When false, monoline comments will be presented without decoration.

"evenbettercomments.multilineComments": true
This setting will control whether multiline comments are styled using the annotation tags. When false, multiline comments will be presented without decoration.

"evenbettercomments.highlightPlainText": false
This setting will control whether comments in a plain text file are styled using the annotation tags. When true, the tags (defaults: ! * ? //) will be detected if they're the first non-whitespace character on a line.

"evenbettercomments.highlightTagOnly": false
This setting will control if any matching tags will have just the tag, or the entire line highlighted. When true, only the actual tag will be highlighted instead of the entire line.

"evenbettercomments.allowFullBlockHighlights": false
This setting will tell the parser whether it should check for a tag at the beginning of a block comment for a style. When true, if a tag is found at the start of a block comment, the entire block comment will be decorated with its style.

evenbettercomments.tags
The tags are the characters or sequences used to mark a comment for decoration. The default 5 can be modified to change the styles, and more can be added.

"evenbettercomments.tags": [
    {
        "tag": "!",
        "aliases": ["Issue", "problem"],
        "color": "#FF2D00",
        "overline": false,
        "strikethrough": false,
        "underline": false,
        "backgroundColor": "transparent",
        "bold": false,
        "italic": false
    }, {
        "tag": "?",
        "aliases": ["Idea", "Info"],
        "color": "#3498DB",
        "overline": false,
        "strikethrough": false,
        "underline": false,
        "backgroundColor": "transparent",
        "bold": false,
        "italic": false
    }, {
        "tag": "//",
        "aliases": ["-----"],
        "color": "#474747",
        "overline": false,
        "strikethrough": true,
        "underline": false,
        "backgroundColor": "transparent",
        "bold": false,
        "italic": false
    }, {
        "tag": "TODO",
        "color": "#FF8C00",
        "overline": false,
        "strikethrough": false,
        "underline": false,
        "backgroundColor": "transparent",
        "bold": false,
        "italic": false
    }, {
        "tag": "*",
        "aliases": ["Important", "Wip", "~~~~~"],
        "color": "#98C379",
        "overline": false,
        "strikethrough": false,
        "underline": false,
        "backgroundColor": "transparent",
        "bold": false,
        "italic": false
    }
]

Supported Languages

And more! Most languages which are properly configured should be supported.