Skip to main content

How to Clear Notepad's Tab State in Windows 11

A very good day to you. 🎩

Straight to business, then.

In Windows 11, the path for Notepad tab state is:

Close the Notepad first. ➡️ Delete all .bin files inside that folder. ➡️ Open again Notepad.

No, it won't break the Notepad. Promise.

We can set Notepad's start-up option to Open in a new window (instead of "Open in a new tab") after that, optionally. Click the top-right gear icon in Notepad, and we would see this:

Opening files option in Notepad

Through Script

We can do it from PowerShell:

Or CMD (Command Prompt):


Background

I was helping a friend to fix a program on her laptop. When I needed the Notepad to save my steps so she could do it herself, the Notepad hanged. 🤦

It was because a tab in that Notepad opened a nonexistent file. It was already deleted. On normal computer, it would be normal. But on that HP brand, 8 GB RAM, broken graphics diagnostics, and powered by Celeron, the routine never finished. Celeron should be worn as a pendant.

What's that you're wearing? It's not glowing.

Wait until I plug myself into the power outlet.

Therefore, I barged into the folder above, deleted all files, and reopened the Notepad. The Notepad then started a fresh session.


Microsoft.WindowsNotepad_8wekyb3d8bbwe, that 8wekyb3d8bbwe is specifically in Windows 11 — it does look like someone smashed their face on the keyboard after naming the folder. That's actually Microsoft's package family name gibberish for the modern UWP (Universal Windows Platform) version of Notepad (and other Store apps). They all have these face-smashed-on-keyboard alphanumeric tails, same pattern for Calculator, Photos, etc. All have 8wekyb3d8bbwe tails.

8wekyb3d8bbwe

All the best. 👋🎩

Comments

Monkey Raptor uses cookies or biscuits 🍪 for analytics, functionality, and advertisements. More info in Privacy Policy