How to Open Notepad with Previous Session in Windows 11
Notepad in Windows 11 now automatically saves and reopens your previous tabs and any unsaved work.
This handy feature means when you close Notepad with files open, Windows 11 brings them right back the next time you open the app. So, if you had three documents open and closed Notepad, they will reappear when you launch it again, saving you the trouble of finding and reopening them manually.
You control this behavior in Notepad’s settings. You can choose to always restore your last open files or start with a fresh, blank window each time.
Open Notepad and click the Settings (gear) icon. Under “When Notepad starts,” choose “Open content from the previous session” to restore your tabs. Select “Open a new window” for a fresh start each time.
Troubleshooting Notepad++ Session Issues
Switching gears to Notepad++, if your files aren’t showing up, the problem might be with its session file, `session.xml`, which keeps track of your open tabs.
Where does Notepad++ store session files?
Where does Notepad++ store session files? Notepad++ saves your session data in the AppData folder, typically at `📁C:\Users\Username\AppData\Roaming\Notepad++`. Look for the `session.xml` file there. If this file becomes corrupted, your previous tabs won’t load when you restart the program.
How to recover unsaved text files
If you lost work, check the backup folder. It’s usually located at `📁C:\Users\Username\AppData\Roaming\Notepad++\backup`. Your unsaved files might be there. For more advanced settings, consult the official Notepad++ documentation.
Warning: Clearing AppData
Summary
Managing sessions in Windows 11 Notepad is done by turning on the restore setting in the app’s options. Notepad++, on the other hand, uses a `session.xml` file to save your work.
Why does Notepad keep opening old files?
Notepad keeps opening old files because the session restore feature is enabled in your settings. This feature is designed to help you pick up where you left off. You can disable this by going to Settings and selecting Open a new window instead of the previous session option.
How do I clear my Notepad session history?
To clear your session history in Windows 11 Notepad, close all open tabs before exiting the app. If you want a fresh start, you can delete the state files located in your local AppData folder. Note: This requires administrator permission to modify system-protected folders.
Was this guide helpful?
About the Author
Richard
Tech Writer, IT Professional
Richard, a writer for Geek Rewind, is a tech enthusiast who loves breaking down complex IT topics into simple, easy-to-understand ideas. With years of hands-on experience in system administration and enterprise IT operations, he’s developed a knack for offering practical tips and solutions. Richard aims to make technology more accessible and actionable. He's deeply committed to the Geek Rewind community, always ready to answer questions and engage in discussions.
No comments yet — be the first to share your thoughts!