How to Open Notepad with Previous Session in Windows 11
Opening Notepad with your previous session in Windows 11 lets you automatically restore all open tabs and unsaved work right where you left off. This built-in feature saves time by loading your last active documents the moment you launch the app, so you never have to hunt for lost files.
You can easily control this behavior in the Notepad settings menu. Simply open Notepad, click the gear icon in the top right corner, and look for the startup options to choose whether to open previous tabs or start with a fresh blank window.
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++, missing files often point to trouble with `session.xml`, which keeps track of active tabs.
Where does Notepad++ store session files?
Notepad++ tracks open tabs inside a configuration file called `session.xml`. The program saves this session data inside the AppData folder (a hidden user profile directory storing application settings), typically located at `📁C:\
How to recover unsaved text files
Missing work requires checking the backup directory. That specific storage location sits at `📁C:\
Warning: Clearing AppData
Summary
Managing sessions in Windows 11 Notepad happens by toggling the restore setting inside the application options. Notepad++, alternatively, relies on a `session.xml` file to record current work.
Why does Notepad keep opening old files?
Notepad keeps opening old files because the session restore feature is enabled in application settings. This feature helps users pick up right where they left off previously. Disabling the behavior requires opening Settings and selecting Open a new window instead of the previous session option.
How do I clear my Notepad session history?
Clearing session history in Windows 11 Notepad requires closing all active tabs before exiting the application. Deleting state files located in the local AppData folder provides a completely fresh start. Note: Administrator permissions are mandatory for modifying 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!