sublime text- "list lines containing 'find' string

前端 未结 3 2155
一向
一向 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 21:04

    1.Here is a reference: How can I filter a file for lines containing a string in Sublime Text 2?

    • Hit Ctrl+F(⌘+F) to "Find All" occurences;
    • Hit Ctrl+L to Expand All Selection to Line.
    • Then you can Ctrl+C(⌘+C) or Ctrl+Shift+K(⌃+⇧+K) to copy/delete the lines.

    2.There's now a plugin for filtering lines: https://github.com/davidpeckham/FilterLines It allows filtering and code folding based on strings or regular expressions. filterlines plugin:Edit->Line->Filter

提交回复
热议问题