Find and Replace Text in Notepad in Windows 10  

Page 1 of 2 12 LastLast
    Find and Replace Text in Notepad in Windows 10

    Find and Replace Text in Notepad in Windows 10

    How to Find and Replace Text in Notepad in Windows 10
    Published by Category: Apps & Features
    12 May 2021
    Designer Media Ltd


    How to Find and Replace Text in Notepad in Windows 10


    Notepad is a simple text editor included in Windows and a basic text-editing program which enables computer users to create documents.

    You can search to find text in Notepad, and search to find and replace text in Notepad.

    Starting with Windows 10 build 17713, Microsoft made significant improvements to the find/replace experience in Notepad. Microsoft added the option to do wrap-around find/replace to the find dialog and Notepad will now remember previously entered values and the state of checkboxes and automatically populate them the next time you open the find dialog. Additionally, when you have text selected and open the find dialog it will automatically populate the search field with the selected text.

    This tutorial will show you how to find and replace text within a document in Notepad in Windows 10.


    Contents







    OPTION ONE

    To Find Text in Notepad


    1 While in Notepad, perform one of the following actions you want to search and find text: (see screenshots below)

    • Press the Ctrl + F keys.
    • Select (highlight) text you want to search and find, and press the Ctrl+F keys.
    • Click/tap on Edit on the menu bar, and click/tap on Find.

    2 Type what you want to find in the Find what field if it doesn't already have what you want.

    3 Check or uncheck the Match case box for what you want.

    4 Check or uncheck the Wrap around box for what you want.

    Wrap around is only available starting with Windows 10 build 17713.


    5 Select (dot) Up or Down for the Direction where the cursor is at within the text you want to find from.

    6 When you are ready to starting finding the text entered in step 2, perform one of the following actions you want:

    • Click/tap on the Find Next button.
    • Press the F3 key. If the Find dialog is currently open, then you will need to click/tap on the Find Next button at least once first.
    • Click/tap on Edit on the menu bar, and click/tap on Find Next. This option will not work if the Find dialog is currently open.

    7 Repeat step 6 to find all instances of the text entered in step 2, and/or click/tap on OK when it cannot find any other instances.

    Find and Replace Text in Notepad in Windows 10-notepad_find.jpg Find and Replace Text in Notepad in Windows 10-notepad_find-2.png






    OPTION TWO

    To Replace Text in Notepad


    1 While in Notepad, perform one of the following actions you want to search and find text to replace: (see screenshots below)

    • Press the Ctrl + H keys.
    • Select (highlight) text you want to search and find, and press the Ctrl + H keys.
    • Click/tap on Edit on the menu bar, and click/tap on Replace.

    2 Type what you want to find in the Find what field if it doesn't already have what you want.

    3 Type what you want to replace text with from step 2 in the Replace with field.

    4 Check or uncheck the Match case box for what you want.

    5 Check or uncheck the Wrap around box for what you want.

    Wrap around is only available starting with Windows 10 build 17713.


    6 When you are ready to start to find text entered in step 2, perform one of the following actions you want:

    • Click/tap on the Find Next button.
    • Press the F3 key. If the Replace dialog is currently open, then you will need to click/tap on the Find Next button at least once first.

    7 If you want to replace this specific text found with text entered in step 3, click/tap on the Replace button.

    You can click/tap on the Replace All button instead if you want to go ahead and automatically replace all found text from step 2 with text entered in step 3.


    8 Repeat step 6 and step 7 to find and replace all instances of text you want, and/or click/tap on OK when it cannot find any other instances.

    Find and Replace Text in Notepad in Windows 10-notepad_replace.jpg Find and Replace Text in Notepad in Windows 10-notepad_find-2.png


    That's it,
    Shawn Brink




  1. Posts : 5
    Windows 10 Professional
       #1

    Hello Shawn -

    New member here

    I read this post for the first time today

    For a year or more now I have noticed that when I go to "Find" in Notepad, it annoyingly will sometimes be on Direction "Up" instead of "Down" and in that whole year I have never gotten used to having to check that when my searches are not returning the expected results. I always figured that something had changed in Microsoft to make it start doing that, but I never could find where. Your post provides the first answer I've ever had for that. It's a "Feature" now. Oh, how I hate new "features" sometimes . . .

    I used Find in Notepad for over 10 years, where it is always "Down" and if I WANT "Up" I know where to go to get it!

    I have learned that I can delete registry keys and make it revert back to default, and I may have even found the key to edit to make it be "Down" on the next use.

    But I fear that because of this new "feature" functionality, that as soon as I finish a Find in the "up" direction, it's going to remember that and default back to "up" the next time, defeating the purpose of making the registry setting.

    Can you share any wisdom with me?

    Thank you for ANYTHING you can tell me!
      My Computer

  2. Brink's Avatar
    Posts : 57,710
    64-bit Windows 10 Pro for Workstations build 21390
    Thread Starter
       #2

    Jeff S said:
    Hello Shawn -

    New member here

    I read this post for the first time today

    For a year or more now I have noticed that when I go to "Find" in Notepad, it annoyingly will sometimes be on Direction "Up" instead of "Down" and in that whole year I have never gotten used to having to check that when my searches are not returning the expected results. I always figured that something had changed in Microsoft to make it start doing that, but I never could find where. Your post provides the first answer I've ever had for that. It's a "Feature" now. Oh, how I hate new "features" sometimes . . .

    I used Find in Notepad for over 10 years, where it is always "Down" and if I WANT "Up" I know where to go to get it!

    I have learned that I can delete registry keys and make it revert back to default, and I may have even found the key to edit to make it be "Down" on the next use.

    But I fear that because of this new "feature" functionality, that as soon as I finish a Find in the "up" direction, it's going to remember that and default back to "up" the next time, defeating the purpose of making the registry setting.

    Can you share any wisdom with me?

    Thank you for ANYTHING you can tell me!
    Hello Jeff, and welcome to Ten Forums.

    I'm not aware of a way to force "Up" or "Down" by default.
      My Computers

  3. Berton's Avatar
    Posts : 11,012
    Win10 Pro Versions 2004 and 2009/20H2, Win10 Pro IP_Dev, Win10 Home 1909
       #3

    Current choices for Find in Notepad:
    Find and Replace Text in Notepad in Windows 10-image.png
      My Computers


  4. Posts : 5
    Windows 10 Professional
       #4

    Brink said:
    Hello Jeff, and welcome to Ten Forums.

    I'm not aware of a way to force "Up" or "Down" by default.
    Crap.

    And I'm betting that if there were a way, you would know it!

    Thank you Shawn for writing me back
      My Computer

  5. Bree's Avatar
    Posts : 19,644
    10 Home x64 (21H1) (10 Pro on 2nd pc)
       #5

    One problem occurs when you want to find or 'replace with' the Tab character, something you may want to do to change a tab separated variable (.tsv) file into a comma separated variable (.csv) one (or vice versa). You cannot type a Tab into either of the boxes.

    Finding tabs is easy, you just select a tab before searching. Whatever you have selected is automatically entered in the 'Find what' box.....

    Find and Replace Text in Notepad in Windows 10-notepad-find-tab.png

    Replacing with a tab can be more of a problem. The solution is to type a tab in Notepad, select and cut it, then paste it into the 'replace with' box.

    Find and Replace Text in Notepad in Windows 10-notepad-replace-tab.png
      My Computers

  6. Try3's Avatar
    Posts : 8,324
    Windows 10 Home x64 Version 21H1 Build 19043.1052
       #6

    Jeff S said:
    For a year or more now I have noticed that when I go to "Find" in Notepad, it annoyingly will sometimes be on Direction "Up" instead of "Down" .. I always figured that something had changed in Microsoft to make it start doing that, but I never could find where. Ö But I fear that because of this new "feature" functionality, that as soon as I finish a Find in the "up" direction, it's going to remember that and default back to "up" the next time, defeating the purpose of making the registry setting.
    I have only ever seen Notepad start with Find/Replace set to Up if I had set it that way the last time I used it.

    Searching Down remains its default behaviour i.e. its behaviour unless it gets changed manually by the user.

    The "to edit to make it be "Down" on the next use" is
    HKEY_CURRENT_USER\SOFTWARE\Microsoft\Notepad
    Value
    Name fReverse
    Data 0 [by default, Find Down]
    Data 1 [Find Up]
    - This Registry key is rewritten every time Notepad closes so whatever state Find was in at last use will always be written to the Registry.
    - The Value fReverse is created the first time Find is set to Up manually. Before that, it does not exist.

    Denis
      My Computer

  7. Try3's Avatar
    Posts : 8,324
    Windows 10 Home x64 Version 21H1 Build 19043.1052
       #7

    Bree said:
    One problem occurs when you want to find or 'replace with' the Tab character ...
    What an excellent little trick.

    Thanks,
    Denis
      My Computer


  8. Posts : 5
    Windows 10 Professional
       #8

    Try3 said:
    I have only ever seen Notepad start with Find/Replace set to Up if I had set it that way the last time I used it.

    Searching Down remains its default behaviour i.e. its behaviour unless it gets changed manually by the user.
    Correct. And whenever I did a Find that I used Up on the last Find, then the next time I open the Find it is defaulting to Up. In other words, it is defaulting to Up if that was how I last used it.

    THAT is what's driving me NUTS!

    When go to do a Find I expect it to be in the Down position each time I open it, and breaks my train of thought when it doens't behave like I expect, and I have to stop what I'm doing and go reset it to Down. if I need Up I know where to get it! This comes from having used it that way for many many years (I said over 10 years, it's probably been over 20 years). I hate the change, and not being given a choice!


    Try3 said:
    The "to edit to make it be "Down" on the next use" is
    HKEY_CURRENT_USER\SOFTWARE\Microsoft\Notepad
    Value
    Name fReverse
    Data 0 [by default, Find Down]
    Data 1 [Find Up]
    - This Registry key is rewritten every time Notepad closes so whatever state Find was in at last use will always be written to the Registry.
    - The Value fReverse is created the first time Find is set to Up manually. Before that, it does not exist.

    Denis
    Thank you for giving me the correct key and settings. I suspected, but did not know for sure, and I appreciate your help there.

    Two things:

    #1, if I set the key that way, but then the next time I do a Find if it was in the Up direction, won't it re-write (or re-set) the registry key? Do you know a way to make that key be read-only, so it can't be changed?

    #2, if I do NOT close Notepad, but the last Find I did was Up, then the next time I open Find it is defaulting to Up even though I have not closed the Notepad. Is there any way I can make it stop doing that?

    My wife insists that this is an unimportant issue, and that all of the world will just adjust their workflow to use it the new way. But it's like Chinese water torture to me. I use Find in a very large Notepad file all day every day, and while I have had to get used to this extra step in my thought process, it STILL bugs the be-jeebers out of me EVERY TIME I have to do it . . . .

    Thank you again for acknowleding me and taking time to help me with this.
      My Computer

  9. Try3's Avatar
    Posts : 8,324
    Windows 10 Home x64 Version 21H1 Build 19043.1052
       #9

    Jeff,

    #1 Yes. No.
    #2 No.

    I know Notepad in Windows XP & in Windows 10 Version 1709 always started with Find set to Down every time you used Find even during the same Notepad session & even if you had set it to Up the last time you used it.
    - I don't know when the change in behaviour took place.
    - You can extract the Notepad.exe from one of your old [Ver 1709 or earlier] system images and use that in your current version if the thing matters to you that much.


    By the way, I do not understand why you are doing so much work in Notepad. It is very limited in capability. Even the other built-in component [WordPad at "%ProgramFiles%\Windows NT\Accessories\wordpad.exe"] is more capable than Notepad and even the free versions of other word processors are.

    Denis
    Last edited by Try3; 4 Weeks Ago at 09:16.
      My Computer


 
Page 1 of 2 12 LastLast

Tutorial Categories

Find and Replace Text in Notepad in Windows 10 Tutorial Index Network & Sharing Instalation and Upgrade Browsers and Email General Tips Gaming Customization Apps and Features Virtualization BSOD System Security User Accounts Hardware and Drivers Updates and Activation Backup and Restore Performance and Maintenance Mixed Reality Phone


  Related Discussions
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 09:28.
Find Us




Windows 10 Forums