


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

Undress AI Tool
Undress images for free

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

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

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

In this post, you’ll learn how to translate a web page in Google Chrome on desktop or mobile, how to adjust Google translation settings, how to change Chrome language. For more Chrome tips, computer tips, useful computer tools, you can visit php.cn S

Esentutl.exe is an executable file, playing a significant role in Windows system. Some people find this component lost or not working. Other errors may emerge for it. So, how to fix the esentutl.exe error? This article on php.cn Website will develop

TheAlienwareAG275UXMdeliversstrongcoloraccuracyandwidegamutcoveragesuitableforbothcreativeworkandgaming.1.Itoffersfactory-calibratedcoloraccuracywithΔEbelow2,oftenreachingΔE

This tutorial teaches you how to delete TikTok account permanently from your device. You can go to your TikTok account settings to easily delete your account. After you delete the account, it will be deactivated for 30 days and be permanently deleted

If you can’t see the font or the graphics on your computer screen, you can zoom in on Windows 10 for a better view of the screen. Do you know how to zoom in on PC? It is not difficult. In this post, php.cn Software will show you how to zoom in on you

In your Windows Settings or you main full-screen, you may see the “your version of Windows has reached end of service” message. What does it mean? How to remove this message? This post from php.cn tells the details for you.

What is NTLite used for? How do I debloat an ISO in Windows 11? If you want to debloat Windows 11 before installing it, you can run NTLite to create your own Lite Edition. In this post, php.cn will guide you NTLite Windows 11 download and how to use

In this post, you will learn what Realtek USB wireless LAN utility is, how to download or update Realtek wireless LAN driver, and some troubleshooting tips for Realtek WiFi adapter driver issues. For Windows users, you can find some useful utilities
