Skip to content
Follow
Windows

How to Open Notepad with Previous Session in Windows 11

Richard
Written by
Richard
Sep 1, 2023 Updated Sep 16, 2026 1 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.

Advertisement

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.

Advertisement

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++ stores your previous session files inside a configuration file named session.xml located in the AppData folder (a hidden user profile directory storing application settings at 📁C:\Users\Username\AppData\Roaming\Notepad++). When you want to find where Notepad++ keeps these open tabs, you need to check this exact Roaming folder in your user directory. Corrupted data inside this XML document prevents your previous tabs from loading when you restart the program.

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

⚠️WarningClearing 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.

Was this guide helpful?

Tags: #Windows 11
Was this helpful?
Richard

About the Author

Richard

Tech Writer, IT Professional

Richard is a writer at Geek Rewind who turns complex IT tasks into clear, step-by-step guides. He draws on years of hands-on experience in system administration and enterprise IT operations, focusing on Windows, Linux and WordPress: the problems people actually run into, and the fixes that work. His server and WordPress guides come from systems he runs himself. Richard builds and maintains the platform behind Geek Rewind, from its Ubuntu servers and Nginx configuration to its custom WordPress plugins. Many new tutorials start with readers' questions, and he's always glad to answer them in the comments.

Advertisement

📚 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 *