How to Open Notepad with Previous Session in Windows 11
Windows 11 Notepad automatically saves and reopens your previous tabs and unsaved work.
This feature ensures that when you close Notepad with multiple files open, they are restored the next time you launch the application.
For example, if you had three text files open and closed Notepad, Windows 11 will automatically bring them back when you reopen it, saving you the hassle of manually reloading them.
This behavior is controlled through Notepad’s settings, allowing you to choose between restoring your last session or always starting with a clean, blank window.
You can easily manage this setting by accessing the gear icon in the top right corner of Notepad and selecting your preferred startup option.
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
If your Notepad++ files aren’t showing up, the problem might be with its session file, which is named `session.xml` and keeps track of your open tabs.
Where does Notepad++ store session files?
Notepad++ saves your session data in the AppData folder. You can navigate to `📁C:\Users\Username\AppData\Roaming\Notepad++` to find the `session.xml` file. If this file is 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`. You might find your unsaved files there. For more advanced settings, visit the official Notepad++ documentation.
Warning: Clearing AppData
If you want to force a completely fresh start for Notepad++, you can delete the contents of the AppData folder. Warning: This will remove all your saved settings and session history. You’ll need administrator permission to access and change these system folders. Proceed with caution.
Summary
You can easily manage sessions in Windows 11 Notepad by turning on the restore setting in the app’s options, while Notepad++ 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!