Created
November 29, 2025 22:08
-
-
Save nickyonge/52fa2a0669240711c22d5839e8a1a221 to your computer and use it in GitHub Desktop.
Improved MARK: section header regex for Settings > Editor > Minimap > Mark Section Header Regex. Recognizes the end of inline comments and removes trailing whitespace.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| \bMARK:\s*(?<separator>-?)\s*(?<label>.*?)(?:\s*(?:(?:[*]\/)|(?:-{2,}>)|(?:#>)|$)) | |
| More details: https://www.reddit.com/r/vscode/comments/1p4f3jt/i_made_better_mark_regex_for_section_headers_in/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment