sublime text- "list lines containing 'find' string

前端 未结 3 2154
一向
一向 2021-02-13 20:01

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

3条回答
  •  盖世英雄少女心
    2021-02-13 20:44

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

提交回复
热议问题