sublime text-"包含'find'字符串的列表行 [英] sublime text- "list lines containing 'find' string

查看:68
本文介绍了sublime text-"包含'find'字符串的列表行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何列出包含来自find"命令的匹配项的行?即,我想在单独的窗口中列出所有匹配的行.目前只能转到下一个/上一个查找".

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

推荐答案

尝试'在文件中查找' (Cmd+Shift+F在 Mac 上,大概是 Ctrl+Shift+F 在 PC 上).

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.

  • 要仅搜索打开的文件,请将 放在 Where 字段中.
  • 要仅显示匹配的行而不显示上下文的周围行,请切换显示上下文"选项(位于查找全部"面板的左侧).
  • 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).

这篇关于sublime text-&quot;包含'find'字符串的列表行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆