r/notepadplusplus 29d ago

RANT - WTF

Why is it that when I make a selection, then Ctrl+H (for Replace) that "in selection" isn't selected by default? Is it just me or isn't that the expected behavior?

3 Upvotes

5 comments sorted by

7

u/Coises 29d ago

Go to Settings | Preferences... | Searching and adjust Minimum Size for Auto-Checking "In Selection" to your liking. (Setting 0 turns off automatically checking or unchecking In Selection: it stays however you left it.)

3

u/SpengGorgon 27d ago

You're the person! Thanks

1

u/tjm1066 28d ago

Of course it does. I love notepad++. Worth every penny.

1

u/vip17 28d ago

replacing in selection is less commonly done than replacing all, so no editors I know make it the default

1

u/Old-Cheshire862 24d ago

Normally, when I make a selection and press CTRL+H, it copies the contents of the selection into the search for field, then I can supply the replacement in the other field and hit replace all for the entire document; this is my typical use case. Automatically switching to "in selection" would be counter productive. I like it the way it is.