search
HomeComputer TutorialsComputer KnowledgeHow to Fix Notepad Keeps Closing Automatically on Windows

How to Fix Notepad Keeps Closing Automatically on Windows

Windows Notepad is a simple text editor in Windows system, often used to create plain text files. But sometimes problems may occur, such as automatic shutdown. This article will provide several solutions.

Windows Notepad is the most basic text editor for Windows system and is only used to create text files and compatible formats. Recently, many users have reported that notepad will automatically close during use. Here is a real case:

My system is Windows 11 Home Edition. Notepad will automatically close. I've deleted and reinstalled, but the problem remains. I need to use notepad at work and it will automatically close when it reaches line 26. I have no antivirus software installed, nor have I gotten infected with the virus. - Carla Perez

Solve the problem of automatic shutdown of notepad

Method 1: Reset Notepad default settings

Registry keys are crucial for the proper operation of Windows operating systems, programs and other software and hardware. It is recommended to make a backup before modifying the registry key.

Step 1: Press Win R to open the run window.

Step 2: Enter regedit in the text box and press Enter to open the Registry Editor.

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

How to Fix Notepad Keeps Closing Automatically on Windows

Step 4: Right-click Notepad and select "Delete".

Then restart the computer to apply the changes. Notepad will reset to default settings.

Method 2: Adjust the size of the Notepad window

Automatic closing problem may occur when the content of Notepad exceeds 27 lines. You can use the mouse to adjust the length and width of the Notepad window.

Then check if the notepad is still stopped for no reason.

Method 3: Run the CHKDSK command

If Notepad auto-closing is caused by a bad sector, you can run the CHKDSK command to find and fix the bad sectors.

Step 1: Press Win R to open the run window.

Step 2: Enter cmd in the text box and press Shift Ctrl Enter to run the command prompt as administrator.

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

Step 4: Enter Y and press Enter.

How to Fix Notepad Keeps Closing Automatically on Windows

The system will look for and fix the errors on the next startup.

Method 4: Reinstall Notebook

Step 1: Press Win I to open Windows settings.

Step 2: Select Apps > Apps and Features.

Step 3: Select "Optional Features" in the right pane.

Step 4: Enter Notepad in the box under Installed Features.

Step 5: Click "Notepad" and select "Uninstall".

How to Fix Notepad Keeps Closing Automatically on Windows

After that, you can reinstall Notepad in the Microsoft Store.

Recover lost/deleted notepad files using MiniTool Power Data Recovery

If you accidentally delete the Notepad file permanently and wish to recover it, you can use MiniTool Power Data Recovery. This free data recovery software can safely recover deleted/lost files. With its powerful features, recovery efficiency and accuracy are greatly improved. You can first try the free version to recover up to 1GB of files. If necessary, please visit this page for the appropriate paid version.

Solve the problem of repeated pop-ups on Notepad

If Notepad pops up repeatedly, you can try the following steps:

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 press Enter.

Step 3: In the window that opens, select View on the top toolbar, and then select Hide Items.

Step 4: Find if the desktop.ini file exists. If it exists, delete it to see if the problem is resolved.

If this method does not work, run the antivirus tool to scan your computer for virus infection.

Summarize

The automatic shutdown error of notepad can cause great trouble for your work or study. If you encounter this problem, you can try the above method to solve it.

Also, if you lose files, MiniTool Power Data Recovery can help you.

The above is the detailed content of How to Fix Notepad Keeps Closing Automatically on Windows. For more information, please follow other related articles on the PHP Chinese website!

Statement
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Download Hidester VPN/Proxy to Access Your Favorite Content - MiniToolDownload Hidester VPN/Proxy to Access Your Favorite Content - MiniToolApr 22, 2025 am 12:50 AM

Learn about Hidester VPN and Hidester proxy and download Hidester VPN for Windows, Mac, Android, and iOS to use this VPN service to view websites with no limit. For more useful free computer tools and troubleshooting tips, you may visit php.cn Softwa

Windows Keyboard Opening Shortcuts Instead of Typing [Fixed]Windows Keyboard Opening Shortcuts Instead of Typing [Fixed]Apr 22, 2025 am 12:48 AM

Have you ever encountered the trouble of “Windows keyboard opening shortcuts instead of typing”? In this post from php.cn, you will learn how to fix this issue.

Easy Ways to Add the Control Panel Icon to Desktop on Win 10 / 11Easy Ways to Add the Control Panel Icon to Desktop on Win 10 / 11Apr 22, 2025 am 12:46 AM

In this post, php.cn Software will introduce what Control Panel is and how to add the Control Panel icon to desktop on your Windows 10 or Windows 11 computer. You can also learn some related information about desktop icon settings.

Granblue Fantasy Relink Save File Location & Backup Save DataGranblue Fantasy Relink Save File Location & Backup Save DataApr 22, 2025 am 12:45 AM

If you play Granblue Fantasy: Relink on your PC, you may wonder where you can find its save file. In this post, php.cn introduces everything you want to know - Granblue Fantasy Relink save file location and how to back up the savegame of this game.

How to Fix Event ID 1104: The Security Log Is Now Full? - MiniToolHow to Fix Event ID 1104: The Security Log Is Now Full? - MiniToolApr 22, 2025 am 12:44 AM

Event Viewer keeps track of activity for better management. However, if the upper limit of the security log is reached, no more events can be logged. In this post on php.cn Website, we will show you how to deal with Event ID 1104 the security log is

Watch: How to Enable Secure Boot on Gigabyte Motherboard?Watch: How to Enable Secure Boot on Gigabyte Motherboard?Apr 22, 2025 am 12:43 AM

Secure Boot is a security standard that can prevent your computer from booting with untrustworthy software. Enabling it will add an extra layer of security to your device. In this post from php.cn Website, we will show you how to enable Secure Boot o

Windows 11 23H2 Release Date: September 26, 2023 - MiniToolWindows 11 23H2 Release Date: September 26, 2023 - MiniToolApr 22, 2025 am 12:42 AM

Coming to a new year, what Windows 11 users are looking forward to are not only the patch updates but also the annual major update for Windows 11. This post will talk about the Windows 11 23H2 release date. In addition, if you want to recover deleted

How to Turn off Bixby on Samsung Phone? See a Guide! - MiniToolHow to Turn off Bixby on Samsung Phone? See a Guide! - MiniToolApr 22, 2025 am 12:41 AM

Can you completely disable Bixby? How to turn off Bixby on Samsung phones? It is not hard to disable this voice assistant. In this post from php.cn, we will go to any length to help you find the method. Besides, a way to turn off “Hi, Bixby” is also

See all articles

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Tools

PhpStorm Mac version

PhpStorm Mac version

The latest (2018.2.1) professional PHP integrated development tool

ZendStudio 13.5.1 Mac

ZendStudio 13.5.1 Mac

Powerful PHP integrated development environment

WebStorm Mac version

WebStorm Mac version

Useful JavaScript development tools

Safe Exam Browser

Safe Exam Browser

Safe Exam Browser is a secure browser environment for taking online exams securely. This software turns any computer into a secure workstation. It controls access to any utility and prevents students from using unauthorized resources.

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor