Skip to content

Instantly share code, notes, and snippets.

@nickyonge
Created November 29, 2025 22:08
Show Gist options
  • Select an option

  • Save nickyonge/52fa2a0669240711c22d5839e8a1a221 to your computer and use it in GitHub Desktop.

Select an option

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.
\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