I have just upgraded to Windows 11 on my pc.
As a C++/cmake programmer, I constantly use the option "create new -> text file" on the context menu, but Windows 11 has removed this option.
Is there a way to get this option back, e.g via regedit, or some new tool?
5 Answers 5
What spikey_richie suggests will reset the whole context menu back to the look from Windows 10 which might be what someone wants but does not answer the OP's specific question.
I was looking for a way to only get the "Create New Text Document"-option back. Found this great page: https://www.tenforums.com/tutorials/24412-add-remove-default-new-context-menu-items-windows-10-a.html
And used the "Restore_New_Text_Document_context_menu_item.reg"-file which worked great.
To only restore what the OP asked, the following .reg file is the only thing needed. A sign out/sign in OR reboot is needed for explorer.exe to pick up the change.
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\.txt\ShellNew]
"ItemName"=hex(2):40,00,25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,6f,00,74,00,25,00,5c,00,73,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,6e,00,6f,00,74,00,65,00,70,00,61,00,64,00,2e,00,65,00,78,00,65,00,2c,00,2d,00,34,00,37,00,30,00,00,00
"NullFile"=""
[HKEY_CLASSES_ROOT\txtfilelegacy]
@="Text Document"
-
5Exactly what I needed, restart explorer.exe or your pc after adding the reg filesSuperMar1o– SuperMar1o2022年12月19日 14:37:30 +00:00Commented Dec 19, 2022 at 14:37
-
2I cannot seem to edit my old comment. New info: At first, this did not work. The "New -> Text Document" already appeared when right-clicking on the Desktop background, but not right-clicking within Windows Explorer. Strange enough. Both of these remain unchanged after taking this action. Then restoring my registry backup seemed to change nothing. Now, a day later, and magically (because that's how Windows works), "New -> Text Document" appears everywhere. I presume due to a reboot. I hope I can be more scientific next time.Jason Doucette– Jason Doucette2023年03月02日 04:46:52 +00:00Commented Mar 2, 2023 at 4:46
-
2A reboot is not required. Just open the task manager and restart the Explorer.exe process.not_a_generic_user– not_a_generic_user2023年05月05日 18:30:33 +00:00Commented May 5, 2023 at 18:30
-
2FWIW, the truncated version in this answer did not work for me, but the longer version from the tenforums.com link did work.The111– The1112024年04月04日 04:06:44 +00:00Commented Apr 4, 2024 at 4:06
-
2The first sentence in this answer currently states: "What spikey_richie suggests will reset the whole context menu back to the look from Windows 10...". To what suggestion does that refer?Amazon Dies In Darkness– Amazon Dies In Darkness2024年12月09日 06:54:05 +00:00Commented Dec 9, 2024 at 6:54
What worked for me was resetting the Notepad app -- Settings; Apps; Apps & features; next to "Notepad", select the three dot pop-up menu; Advanced options; select Reset. It appears to effectively do an uninstall/reinstall of notepad and resets the associated settings. "Text Document" has returned as an option under the right-click, New menu.
Windows 11 settings - Apps Notepad Advanced options
Windows 11 settings - Notepad reset
You will likely need to restart Explorer for the new option to show up:
Task Manager, Explorer selected and the "Restart task" button highlighted
-
4That doesn't even show up here. No notepad in the list, weird.Ezequiel Barbosa– Ezequiel Barbosa2022年08月28日 02:38:23 +00:00Commented Aug 28, 2022 at 2:38
-
4Slight variation worked for me after 22H2 W11 feature update. Menu has changed - no three dot pop-up menu. Select use "set defaults by file type" Select .txt change default app from Notepad to Wordpad, and OK. Then set it back to notepad. Now text file appears in Explorer context menu.Tom Collinge– Tom Collinge2022年10月10日 08:17:40 +00:00Commented Oct 10, 2022 at 8:17
-
7Worked for me. It's now under "Installed Apps". After resetting Notepad I had to close all explorer windows then use Task Manager to restart Windows Explorer.Bob Stein– Bob Stein2023年05月13日 11:58:09 +00:00Commented May 13, 2023 at 11:58
-
2Worked like a charm for meBruce Johnston– Bruce Johnston2024年01月11日 04:58:38 +00:00Commented Jan 11, 2024 at 4:58
-
4Doing just repair instead of reset restored the missing explorer new context menu item after restarting explorer. With the benefit that you don't lose notepad data such as currently opened files.Slion– Slion2024年08月16日 09:17:30 +00:00Commented Aug 16, 2024 at 9:17
If you want to manually change the registry (always make a backup before editing) without resetting it to the Windows 10 look, here are the steps that worked for me:
- Open the registry editor and move to
HKEY_CLASSES_ROOT\.txt - Add a new
KeycalledShellNew - Move to the new key (i.e.
HKEY_CLASSES_ROOT\.txt\ShellNew) - Add a new
String Valuewith the nameNullFile
Now, the only thing missing is the name shown in the context menu. Because it has none per default, the entry does not show up yet. To change this:
- Move to
HKEY_CLASSES_ROOT\txtfilelegacy - Change the
(Default)value toText File(or any other name you'd like)
Et voilà! It should show up, no reboot needed. (Edit: Maybe you do need to restart explorer.exe, as David Moylan pointed out.) If you want to add a template for the file, this might work, but I did not try it.
-
3I just tried this but the content menu didn't update. i used task manager to kill and restart explorer.exe and then it appears. obviously a machine restart would also do the same. but thanks - this was the quickest method to set this up.David Moylan– David Moylan2022年06月10日 03:21:17 +00:00Commented Jun 10, 2022 at 3:21
-
1This a long version of the .reg file above.Yumi Koizumi– Yumi Koizumi2024年03月10日 02:21:33 +00:00Commented Mar 10, 2024 at 2:21
-
Did M$ remove this in an update? This just disappeared for me.Chris_F– Chris_F2024年06月23日 06:07:55 +00:00Commented Jun 23, 2024 at 6:07
Not an answer to the question per se, but a quick work-around:
- New > Word Document
- Rename it to myfile.txt
Blank word files are just blank files, so this creates a blank file with a .txt extension, as needed.
-
2Should be the best answer tbh, no need to configure anything though you have to have MS Office installed.Luke Vo– Luke Vo2022年06月15日 15:38:44 +00:00Commented Jun 15, 2022 at 15:38
-
2You can also select Rich Text Format, give it a different extension (.txt, .php, etc.) and then delete the one line that the file contains. RTF files are just text files with RTF tags in them.Scott M. Stolz– Scott M. Stolz2022年10月21日 07:37:06 +00:00Commented Oct 21, 2022 at 7:37
-
3Windows 11 doesn't come with Word, and there is no "Word Document" in its context menu.David Spector– David Spector2023年07月29日 23:21:52 +00:00Commented Jul 29, 2023 at 23:21
-
OP didn't as for work-arounds, though... You guys are usually hyper-strict about that...Yumi Koizumi– Yumi Koizumi2024年03月10日 02:18:10 +00:00Commented Mar 10, 2024 at 2:18
-
3Funny enough, it works with other file types. For example "new bitmap image", then rename to "bla.txt" ... Windows...Surge– Surge2024年06月04日 13:53:11 +00:00Commented Jun 4, 2024 at 13:53
Install Windows Notepad from Microsoft Store: https://www.microsoft.com/store/productId/9MSMLRH6LZF3
Then either:
Restart Windows Explorer by going to Task Manager > Processes > Windows Explorer > Right Click > Restart
OR restart windows
and then it should pop up
-
1I can confirm this works even if you've already set the clumsy new context menu back to the old one. If you'd have the bright idea to install and then uninstall hoping it'll leave the desired behavior without the software, I just want to note here don't bother, it'll remove it from the context menu after uninstall.nopara73– nopara732023年01月13日 13:53:20 +00:00Commented Jan 13, 2023 at 13:53
-
Interestingly, I believe I'm having this issue specifically because I've uninstalled the new Notepad app from the store since I prefer the classic
notepad.exe.patricknelson– patricknelson2024年09月04日 20:36:27 +00:00Commented Sep 4, 2024 at 20:36