开发者

How do you perform find/replace in selected text with 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/Repla开发者_运维知识库ce All with Notepad++ on only that section?


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.

How do you perform find/replace in selected text with Notepad++


The "In Selection" checkbox is a bit finicky. It doesn't always work on the first attempt. I have to repeat the cycle "Select:Search Replace:Close if checkbox greyed out". I am able to check the box on 2nd or 3rd attempt.

Also, it doesn't work when selection is done in Column Mode. Many times I just want to replace text in certain columns. But it's always greyed out when text selected in column mode.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜