Search code examples
sublimetext2

sublime text- "list lines containing 'find' string


How do I list the lines that contains the matches from the "find" command ? ie., I would like to list all the matching lines in a separate window. Currently one can only goto next / previous 'find'.


Solution

  • Try 'Find in Files' (Cmd+Shift+F on a Mac, presumably Ctrl+Shift+F on a PC).

    Search results will display in a new tab, and you can double-click any result to jump to that line in the matching file.

    • To search only open files, put <open files> in the Where field.
    • To show only the lines that matched without surrounding lines for context, toggle the 'Show Context' option (to the left of the 'Find All' panel).