Regex RobinRegex 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. ConfigurationYou 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. Rule precedenceStylesStyles 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. LinksWhen 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. LimitationsIf you have "Word wrap" enabled, any extra lines created by long text being wrapped will still be visible when using the TroubleshootingExtension fails to load with error "Invalid flags: dg"This error has been observed when another installed extension polyfills the The solution is to disable the extension that is causing the issue. VSCode's "Extension Bisect" feature can help you find the offending extension. Absolute filepaths on WindowsAbsolute filepaths need to be prepended with
See this issue. The logoThe logo was generated using DALL·E 2. ContributingRead the contributing doc for direction around setting up the extension for development and debugging. If you're extending the extension's configuration options, look into the |