Notepad Opens Recent Text Files Everytime in Windows 11

When you open a .txt file using Notepad, it may automatically open all the recent text files you have opened — e.g., files opened yesterday or the day before. When you close all the open files and open Notepad again, it also opens the most recent .txt file.

notepad open recent text files automatically - tab ui

This behavior is seen in the store version of Notepad that has the tabbed user interface.


The Notepad store app has a setting that decides whether to open recent files during launch. Please follow these steps:

  • Open Notepad.
  • Click on the gear icon in the top right-hand corner of Notepad. The gear icon opens the “Settings” window.
  • In Settings, expand “When Notepad starts”. There will be two choices: “Open content from the previous session” and “Open a new window.”
  • Select “Open a new window”.
    notepad open recent text files automatically(In older versions of Notepad, the option may be named “Restore the previous session” or “Reopen files from the last session.”)

Close and reopen Notepad.

One small request: If you liked this post, please share this?

One "tiny" share from you would seriously help a lot with the growth of this blog. Some great suggestions:
  • Pin it!
  • Share it to your favorite blog + Facebook, Reddit
  • Tweet it!
So thank you so much for your support. It won't take more than 10 seconds of your time. The share buttons are right below. :)

Ramesh Srinivasan is passionate about Microsoft technologies and he has been a consecutive ten-time recipient of the Microsoft Most Valuable Professional award in the Windows Shell/Desktop Experience category, from 2003 to 2012. He loves to troubleshoot and write about Windows. Ramesh founded in 2005.

Leave a Comment