Regex Robin is a VS Code extension that allows you to customize the appearance of text in your editor using regex patterns, as well as creating links and hover messages.
You can configure rules like this:
Combined with similar rules to match markdown links, and "TODO" and "NOTE" comments, it leads to the following experience:
The above example uses:
More examples are documented in the example configuration, as well as the "templates" feature for reusing complex regex patterns.
Styles are applied in the order they are defined. Styles can overlap.
With the example config below, the text "hello world" would have a red "hello" and a blue "world".
If we reverse the order of these rules, then the entire text would be red.
When two link rules apply to the same text, the one defined last wins.
The second rule is the one that would take effect for the text "special-case#22", despite the fact that the regex for both rules match the text.
If you have "Word wrap" enabled, any extra lines created by long text being wrapped will still be visible when using the
The logo was generated using DALL·E 2.
Read the contributing doc for direction around setting up the extension for development and debugging.