Solved! When opening Notepad in Windows 11, the last unsaved content is displayed

This time, we will introduce the causes and solutions when unsaved content is displayed when you open Notepad in Windows 11, as well as what to do when Notepad stops responding and you can't do anything when you open it.

The Notepad in Windows 11 is different from previous Notepads and has added some very useful features that many users will appreciate.

Notepad version
Notepad version
table of contents

What to do if unsaved content is displayed when you open Notepad

Cause

The recently updated new Notepad (11.2307.27.0) now includes a feature that automatically saves unsaved content.

Even if the user clicks the X button to exit without saving the text, or signs out or restarts the app, the unsaved content will be restored the next time the app is started.

Notepad - Unsaved text
Notepad – Unsaved text

This is a very handy feature and it means you don't have to panic if a user accidentally closes it.

However, it seems to be an unnecessary feature for some users.

*The version of Notepad is "11.2307.27.0", but in some environments, the additional features may not be available even with the same version.

approach

You will need to make some settings to prevent unsaved content from being restored.

1. Open Notepad and click the settings button (gear icon) in the top right corner.

Notepad
Notepad

2. Click "When Notepad starts."

Notepad - Settings
Notepad – Settings

3. "Open content from a previous session" is selected, so select "Open in a new window."

Notepad - Settings - When Notepad starts
Notepad – Settings – When Notepad starts

4. Just click the X button.

5. A confirmation screen will then appear for all unsaved content asking "Do you want to save your changes?" If you want to save, click "Save", otherwise click "Don't save".

Notepad - Prompt to save changes
Notepad – Prompt to save changes

Now, any unsaved content will no longer be saved automatically, and the next time you open Notepad, it will open in a new, blank state.

If Notepad stops responding when you open it and you can't do anything

For example, you may have a very large file open in Notepad, which can cause it to stop responding and not allow you to do anything.

If this happens, try clicking the x button in the upper right corner several times.

A stopped responding notepad
A stopped responding notepad

You will then see the message "Notepad.exe is not responding," so click "→ End program."

A stopped responding notepad
A stopped responding notepad

You will then see the message "Reporting a Windows problem to Microsoft. Please wait..." Click "Cancel".

A stopped responding notepad
A stopped responding notepad

This will close Notepad.

However, if you leave it like this, the same thing will happen again when you open Notepad again, so try manually deleting any unsaved content in Notepad.

The last unsaved content of Notepad is stored in the following location:

C:\Users\ユーザー名\AppData\Local\Packages\Microsoft.WindowsNotepad_8wekyb3d8bbwe\LocalState\TabState

You can easily open it by pressing Windows key + R to open Run, typing the following command, and pressing Enter:

%userprofile%\AppData\Local\Packages\Microsoft.WindowsNotepad_8wekyb3d8bbwe\LocalState\TabState
Explorer
Explorer

The file name is an ID-like name that is a mixture of numbers and letters.extensionis ".bin".

If you delete these files while Notepad is closed, all unsaved content will be deleted, and Notepad will open normally the next time you open it.

Notepad opened after deleting the last unsaved content
Notepad opened after deleting the last unsaved content
If you found this article helpful, please share it on social media.

Person who wrote this article

Driven by questions arising from my daily PC use and the desire to "do more," I have been pursuing self-study in Windows since around 2008. I am sharing the "aha!" techniques and solutions I discovered through trial and error with the sole purpose of helping you in your PC life.

View profile

Comment:

Comment list (2)

  • When I restored it using the restore point, all the text file data was
    I was having a lot of trouble with the message "not found."

    I did some research and came across this page which was really helpful.
    I was really grateful because I had recorded important settings and passwords.

To comment

[About submissions]
We welcome any questions or information regarding the content of the article.
However, please note that content unrelated to the purpose of the article, criticism of specific individuals or organizations, offensive language,Inappropriate wordsComments containing the above may be deleted or made private without notice at the discretion of the administrator.
Please note that spam may be automatically deleted by anti-spam measures.

CAPTCHA


table of contents