如何使用 Notepad++ 在选定文本中执行查找/替换 [英] How do you perform find/replace in selected text with Notepad++

查看:61
本文介绍了如何使用 Notepad++ 在选定文本中执行查找/替换的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个正在用 Notepad++ 编辑的 C 文件,有一段大约 30 行连续行,我想用另一个词替换一个词.有没有办法只在该部分使用 Notepad++ 执行查找/替换全部操作?

I have a C file I am editing with Notepad++, and there is a section of about 30 consecutive lines where I want to replace one word with another word. Is there a way to do a Find/Replace All with Notepad++ on only that section?

推荐答案

在 Notepad++ 的查找/替换"对话框中,全部替换"按钮旁边有一个选择中"复选框.使用它,你应该很高兴.

There is an 'In Selection' checkbox in the Notepad++ Find/Replace dialog, right next to the 'Replace All' button. Use that and you should be good to go.

这篇关于如何使用 Notepad++ 在选定文本中执行查找/替换的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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