Skip to content
Follow
Windows

How to Open Notepad with Previous Session in Windows 11

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

⚡ 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++, 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

⚠️Warning
Clearing AppData For a completely fresh start with Notepad++, you can delete the contents of its AppData folder. This action will remove all saved settings and session history. Administrator permission is required to access and change these system folders. Proceed with caution.

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?

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 Enable or Disable Rewrite in Notepad for Windows 11
Windows How to Enable or Disable Rewrite in Notepad for Windows 11
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 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 *