


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
.
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.
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".
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!

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

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

Hot Article

Hot Tools

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics

The Steam Cloud error can be caused by many reasons. To play a game smoothly, you need to take some measures to remove this error before you launch the game. php.cn Software introduces some best ways as well as more useful information in this post.

You may see the “A connection to the Windows Metadata and Internet Services (WMIS) could not be established.” error on Event Viewer. This post from php.cn introduces how to remove the Windows Metadata and Internet Services problem.

KB5035942 update issues - crashing system commonly happens to users. Inflicted people hope to find a way out of the kind of trouble, such as crashing system, installation, or sound issues. Targeting these situations, this post published by php.cn wil

OneDrive is an online cloud storage service from Microsoft. At times, you might find OneDrive fail to upload photos to the cloud. If you are on the same boat, keep reading this post from php.cn Software to get effective solutions now!

If you have a program called PC App Store on your computer and did not purposely install it, then your PC may be infected with the malware. This post from php.cn introduces how to remove PC App Store malware.

Is Brothers: A Tale of Two Sons Remake not launching? Encountering Brothers: A Tale of Two Sons Remake black screen? Here this post on php.cn offers you tested solutions to assist you in addressing this problem.

Chris Titus Tech has a tool called Windows Utility that can help you easily create a debloated Windows 11/10 ISO to install a clean system. php.cn offers a full guide on how to do this thing using the Chris Titus tool.

Are you questioned about an issue that MSConfig keeps reverting to selective startup on your Windows? How to switch to normal startup if you require it? Try the methods explained in this php.cn post to find one that works for you.
