Skip to content
Follow
Windows

How to Open Notepad with Previous Session in Windows 11

Richard
Written by
Richard
Sep 1, 2023 Updated Aug 13, 2026 2 min read
How to Use Sticky Notes in Windows 11
How to Use Sticky Notes 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.

⚡ Quick Answer

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:\Users\Username\AppData\Roaming\Notepad++`. Corrupted data inside this XML document prevents previous tabs from loading during a program restart.

How to recover unsaved text files

Missing work requires checking the backup directory. That specific storage location sits at `📁C:\Users\Username\AppData\Roaming\Notepad++\backup` where temporary files might still linger. The official Notepad++ documentation covers more advanced configuration details.

Warning: Clearing AppData

⚠️Warning
Clearing AppData (a hidden user profile directory storing application settings) deletes all saved settings and session history to force a completely fresh start for the program. Administrator permissions are required to access and change these system folders. Proceed with caution.

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?

Tags: #Windows 11
Was this helpful?
Richard

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.

📚 Related Tutorials

How to Change Font in Notepad on Windows 11
Windows How to Change Font in Notepad on Windows 11
How to Use 'Explain with Copilot' in Windows 11 Notepad
Windows How to Use 'Explain with Copilot' in Windows 11 Notepad
How to Enable or Disable Rewrite in Notepad for Windows 11
Windows How to Enable or Disable Rewrite in Notepad for Windows 11
How to Access Settings in Windows 11
Windows How to Access Settings in Windows 11

No comments yet — be the first to share your thoughts!

Leave a Comment

Your email address will not be published. Required fields are marked *