Sublime text 2 - 全局查找和替换(所有文件和所有目录) [英] Sublime text 2 - find and replace globally ( all files and in all directories )

查看:14
本文介绍了Sublime text 2 - 全局查找和替换(所有文件和所有目录)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有办法在所有文件夹的文件中自动查找和替换文本字符串?

推荐答案

是的,有多文件搜索并替换.

ctrlshiftF (cmdshiftF 在 MacOS 上):

Press ctrlshiftF (cmdshiftF on MacOS):

Where 字段中,您还可以添加过滤器以仅搜索您需要的文件夹和文件.如果未设置任何内容,则搜索边栏中列出的所有文件.

In the Where field you can also add filters to search only folders and files that you need. If nothing is set, the search is made on all files listed in the sidebar.

如果你双击搜索结果的某一行,Sublime 会跳转到该行.

If you double click on a line of the search result, Sublime will jump to that line.

注意搜索栏中的这些图标:

Notice these icons in the search bar:

第一个 (show context) 以结果格式切换上下文(如果启用,则在匹配行之前和之后显示一些文本行).第二个允许在新缓冲区或控制台中显示结果.

The first (show context) toggles context in result format (if enabled, some lines of text are shown before and after the matching line). The second allows to show the result in a new buffer, or in a console.

这篇关于Sublime text 2 - 全局查找和替换(所有文件和所有目录)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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