Unlike other operating systems, Windows 7 (and earlier versions of Windows) use the file extension to determine which program should launch this particular file type. In recent versions of Windows, the file extension of known file types is hidden by default, so you may not be able to see it (how to show file extensions in Windows 7). Whenever you install new programs, they may automatically associate themselves with a particular file extension, like “
*.txt” for text files, something you may not want. This tutorial will explain how to manually force Windows to open text files with an editor of your choice, whether you are restoring the association with Notepad, or associating it with a more advanced Notepad replacement of your choice.
Tip – here are a few free Notepad replacements you can download and try:
Metapad, Notepad 2, NoteTab (“Light” edition is free), and PFE (among many others!)
If you are willing to pay, TextPad is our favorite all-purpose text editor.
Change the editor that opens text files
This tutorial focuses on the
TXT file extension, but the procedure is the same if you want to affect other simple text-based files like
INI and others.
- FragAttacks: Everything You Need to Know
- What Is Windows Setup Remediations & How to Remove It?
- How to Use Slack in 2023 (Bonus: 18 Lesser-Known Hacks to Get More Done)
- 10 Fixes For Discord Text to Speech Not Working
- Adaptive Brightness not working or turning off in Windows 11/10
- Open the start menu, and type “extension” in the search field, and click on the “Change the file type associated with a file extension” link in the results:
- The Control Panel will open, and take a while to load a listing of all registered file extensions for your computer (the more programs you have installed, the more extensions you’ll have listed).
- Once the list has loaded, click on it, and type a period followed by “txt“, or scroll down until you see that extension; now, double-click on it (or select it and click on the “Change program” button).
- A new dialog will open, and list all programs Windows 7 has recognized as capable of handling text files (“Recommended programs“), and other choices (the collapsed, “Other programs” section). The current default text editor will be highlighted at the top. Double-click on the text editor you want; if it is not listed, click on the “Browse” button to select it from your
Program Files (x86)folder, typically located on a primary “
- Windows 7 will then assign that new program as Notepad replacement, and reload your file extension listing, and you are done! If needed, repeat these steps for other text file extensions.
To test your new default text editor, navigate to a folder that contains a
txt file, and double-click on it: it should now automatically open with the default text editor you selected. Note that this is a setting that only affects the current user (the profile under which you are logged on).
- New Microsoft Edge vs Google Chrome: Which is Better?
- How to Remotely Troubleshoot a Friend’s Windows PC Without Any Extra Software
- How to copy paste Columns and Rows in Excel spreadsheet
- Fix 0xC002001B Microsoft Store error on Windows 11
- Integrated vs Dedicated graphics card: Which is best for your laptop?
- Programs and Features
- Change or set the default web browser
- Set Internet Explorer as default browser
- Set Firefox as default browser
- Set Google Chrome as default browser
- Set Microsoft Outlook 2003/2007/2010 as default email client
- Set Windows Live Mail as default email client
- Free: Download Windows Live Mail for Windows 7
- Set Thunderbird as default email client
- Free: Download Thunderbird for Windows 7
- Uninstall a program (Delete / remove from your computer)
- Uninstall Internet Explorer 9 from Windows 7
- Remove / Uninstall Internet Explorer 8 from Windows 7
- Uninstall / Delete Games from your computer
- Force Windows 7 to close a program (kill process of unresponsive / frozen applications)
- Run a program as a different user
- Change the default text editor
- How to get to Run (Run dialog to launch programs)
- Keep windows maximized / force programs to open maximized
- Windows 7 Tutorial