How To Fix Notepad Automatic Closing On Windows 11?

To fix Notepad automatic closing on Windows 11, you can try the following steps based on the information provided in the search results:

  1. Reset Notepad to Default Settings

    • Press Win + R, enter regedit and hit Enter.
    • Navigate to HKEY_CURRENT_USER\SOFTWARE\Microsoft\Notepad.
    • Right-click on Notepad and choose Delete.
    • Restart your computer to apply the changes.
  2. Resize the Notepad Window

    • Open a file in Notepad.
    • Move your mouse pointer to the edge of the Notepad window to trigger the resize handle.
    • Adjust the width of the Notepad window.
  3. Run CHKDSK Command

    • Press Win + R, enter cmd, and press Ctrl + Shift + Enter to open Command Prompt as administrator.
    • Type CHKDSK C: /f /r and hit Enter.
    • Type Y and hit Enter. Your computer will find and repair errors the next time it starts up.
  4. Run Notepad with Admin Rights

    • Press Win + R, enter cmd, and press Ctrl + Shift + Enter to open Command Prompt as administrator.
    • Type notepad and click on the Run as administrator option.
    • Click on the Yes button in the User Account Control window.
  5. Update Notepad

    • Launch Microsoft Store.
    • Search for Notepad and click on it.
    • If an update is available, you'll see an Update button; click it to update the app.
  6. Repair Notepad

    • Press Win + I to open Settings.
    • Navigate to Apps > Apps & features.
    • Search for Notepad and click on the three-dots icon, then go to Advanced options.
    • Click the Repair button and wait for Windows to complete the process.
  7. Reinstall Notepad

    • Press Win + I to open Settings.
    • Navigate to Apps > Apps & features.
    • Search for Notepad and click on the three-dots icon, then go to Advanced options.
    • Click Uninstall.
    • Launch Microsoft Store and search for Notepad.
    • Click on the Get button to download and install Notepad.
  8. Perform a Complete System Shutdown

    • Press Win + R, enter cmd, and press Ctrl + Shift + Enter to open Command Prompt as administrator.
    • Type shutdown /s /f /t 0 and hit Enter.
    • Click on the Yes button in the User Account Control window.
    • Power on your PC and launch the Notepad app to check if the issue persists.

If none of these steps resolve the issue, considering using a Notepad alternative like Notepad++ could be another solution.