zimonitrome / vscode-color-blocks

VSCode extension for coloring ranges of comments.
https://marketplace.visualstudio.com/items?itemName=zimonitrome.color-blocks
MIT License
7 stars 1 forks source link
comments highlighting typescript vscode vscode-extension

Color Blocks

Add colorful comment ranges that span multiple lines. This makes it easier to understand what lines a comment refers to and can thus be used to group and organize your code. It also makes it easier for you to find your way in long spaghetti code.

feature X


Features & Settings

Syntax

This extension will look for curly brackets inside comments containing at least a hex color argument. Example:

# MyColorBlock {#f9e, 4}
|       |         |   |
|       |         |   |-> number of lines (optional)
|       |         |
|       |         |-> hex color 3 or 6 characters
|       |
|       |-> text annotation
|
|-> comment character (here for Python)

Sample usage

Color blocks work with both line comments and block comments. All lines in the comment will be part of the color block. If no number is specified after the hex color argument, then the color range will also capture any lines until an empty line.

block comment example

Three different ways to add color blocks.

feature X

Note: The above video is slightly outdated.

Wrapping

feature X

Note: The above video is slightly outdated.

Styling

feature X

Note: The above video is slightly outdated.


Inspired by

GIFs were produced using Gifski.