Search code examples
searchfindsublimetext3syntax-highlightinghighlight

Sublime Text: Enable search highlighting for large files


I have a file that I refer to routinely (it consists of timestamps), and I use Sublime Text to edit it. Normally, when I search for a token in Sublime (Command-F), all instances of the token are also highlighted.

enter image description here

However, the file recently went above 30,000 lines, and this seems to be a threshold for Sublime to automatically disable search highlighting.

enter image description here

Is there a way to re-enable search highlighting in Sublime?


Solution

  • This has been recently resolved.

    Build 4114 adds the following options in the Sublime Preferences to make these kind of options configurable

    • find_scroll_highlights_limit
    • find_highlight_matches_max_size
    • find_regex_highlight_matches_max_size
    • find_in_files_max_result_size