Windows Notepad is designed as a simple text creator for Windows. It is widely used to create pure text documents. But it might occur problems sometimes. Some people find that their Notepad keeps closing automatically on Windows 11. How can you fix the problem if facing it, unfortunately? You can come to MiniTool Software to find solutions.

Windows Notepad is the most basic text editor on Windows. It is only used to create text files and compatible formats. But recently, many people notice a problem that the Notepad keeps closing automatically when they are using it. Here you can find a real case.

I have Windows 11 Home. Notepad is closing automatically. I have already deleted it and reinstalled it. It is still doing the same. I use Notepad for work and I really need it. It closes as soon as you get to line 26 of Notepad. I don't have any antivirus software and I don't have any virus either. - Carla Perezanswers.microsoft
What To Do When Notepad Is Not Working On Your Windows 11
What To Do When Notepad Is Not Working On Your Windows 11

Please don’t worry if you suddenly find Notepad not working in your Windows 11; there are some effective ways to fix it.

Read More

Fix Notepad Keeps Closing Automatically

Way 1: Reset Notepad to Default Settings

Registry keys are important for the normal processing of the Windows operating system, programs, and other hardware and software. I suggest you back up registry keys before making changes to them.

Tips:
You can back up registry keys in Registry Editor by selecting File > Export and then choosing a storage path to save the backup file.

Step 1: Press Win + R to open the Run window.

Step 2: Type regedit into the text box and hit Enter to open Registry Editor.

Step 3: Navigate to HKEY_CURRENT_USER > SOFTWARE > Microsoft > Notepad.

find the Notepad registry key

Step 4: Right-click on Notepad and choose Delete from the context menu.

Then, restart your computer to apply the change. The Notepad will be reset to its default settings.

Way 2: Resize the Notepad Window

You may suffer from the Notepad keeps closing automatically problem when you write until the 27 lines in Notepad. You can use your mouse cursor to adjust the length and width of the Notepad window.

Then, check if Notepad still keeps stopping without any signal.

Way 3: Run CHKDSK Command

If Notepad keeps closing automatically on your Windows is caused by bad sectors, you can run the CHKDSK command to find and fix bad sectors.

Step 1: Press Win + R to open the Run window.

Step 2: Type cmd into the text box and press Shift + Ctrl + Enter to run Command Prompt as administrator.

Step 3: Type CHKDSK C: /f /r and hit Enter to run the command.

Step 4: Type Y and hit Enter.

perform the command

Your computer will find and repair errors the next time it starts up.

Way 4: Reinstall Notepad

Step 1: Press Win + I to open Windows settings.

Step 2: Choose Apps > Apps & features.

Step 3: Select Optional features on the right pane.

Step 4: Type Notepad into the box under Installed features.

Step 5: Click on Notepad and choose Uninstall.

uninstall Notepad

After that, you can reinstall Notepad in Microsoft Store.

Recover Lost/Deleted Notepad Files with MiniTool Power Data Recovery

If you have permanently deleted a Notepad file by mistake and want to restore it, you can seek help from MiniTool Power Data Recovery. This free data recovery software can recover deleted/lost files safely. With powerful features, recovery efficiency and accuracy are highly increased. You can try the free edition first to rescue up to 1GB of files and go to this page to get a suitable advanced edition if needed.

MiniTool Power Data Recovery FreeClick to Download100%Clean & Safe

4 Ways To Recover Notepad File On Win 10 Quickly
4 Ways To Recover Notepad File On Win 10 Quickly

This post shows you how to recover Notepad files in four different ways when the text file is unsaved or after it has been corrupted, lost, and deleted.

Read More

Fix Notepad Keeps Popping Up

Just as Notepad keeps stopping, it may also keep popping up. You can follow the next steps to try to fix the problem.

Step 1: Press Win + R to open the Run window.

Step 2: Copy and paste %programdata%\Microsoft\Windows\Start Menu\Programs\Startup into the text box and hit Enter.

Step 3: In the opened window, select View on the top toolbar and check Hidden items.

Step 4: Find if there is a desktop.ini file. If yes, delete it to see whether the problem is solved.

If this method doesn’t help you, please run an antivirus tool to scan whether your computer is infected by a virus.

Bottom Line

The Notepad keeps closing automatically error can bring great trouble to you if you are using it to work or study. If you are facing this problem, you can follow the methods mentioned above to resolve it.

Besides, if your files are lost, MiniTool Power Data Recovery can help you.

MiniTool Power Data Recovery FreeClick to Download100%Clean & Safe

  • linkedin
  • reddit