没有不值得去解决的问题,也没有不值得去学习的技术!

Fix the Missing “Text Document” Option in Windows 10’s New Context Menu

The "New Text Document" option is now back in the menu

1. In Windows 10, the system right-click menu -> New -> lacks the “New Text Document” option. It disappeared after my family used the computer for a while, as shown in Figure 1.

In Windows 10, the system right-click menu -> New -> lacks the New Text Document option
Figure 1

2. Reference URL: https://answers.microsoft.com/zh-hans/windows/forum/windows_7-desktop/%E7%B3%BB%E7%BB%9F%E5%8F%B3%E9%94%AE%E6%96%B0/8ba81d6b-24bf-4655-afc1-3d0651013087

3. Click Start, type notepad in the “Start Search” box, and open Notepad2, as shown in Figure 2.

Click Start, type notepad in the "Start Search" box, and open Notepad2
Figure 2

4. Copy and paste the following content into the open Notepad file, and save this file as a .reg file, as shown in Figure 3.

Copy and paste the following content into the open Notepad file, and save this file as a .reg file
Figure 3
Plaintext

Windows Registry Editor Version 5.00

 

[HKEY_CLASSES_ROOT\.txt]

@="txtfile"

"Content Type"="text/plain"

 

[HKEY_CLASSES_ROOT\.txt\ShellNew]

"NullFile"=""

 

[HKEY_CLASSES_ROOT\txtfile]

@="Text Document"

 

[HKEY_CLASSES_ROOT\txtfile\shell]

 

[HKEY_CLASSES_ROOT\txtfile\shell\open]

 

[HKEY_CLASSES_ROOT\txtfile\shell\open\command]

@=hex(2):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,4e,00,4f,00,\

 54,00,45,00,50,00,41,00,44,00,2e,00,45,00,58,00,45,00,20,00,25,00,31,00,00,\

 00

5. Double-click this file. When prompted whether to import registry information, click “Yes”, as shown in Figure 4.

Double-click this file. When prompted whether to import registry information, click "Yes"
Figure 4

6. The Registry Editor displays a success message, as shown in Figure 5.

The Registry Editor displays a success message
Figure 5

7. The “New Text Document” option is now back in the menu, as shown in Figure 6.

The "New Text Document" option is now back in the menu
Figure 6

关于作者 · 持续学习与技术实践

我是一名拥有 15 年以上开发经验的技术从业者,自 2013 年起持续运营个人技术博客,记录工作与个人项目中遇到的真实问题,以及解决问题过程中的探索、实践和思考。

除了技术写作,我也在持续开发和维护自己的独立项目,探索新技术和新工具在实际场景中的应用。我始终相信,没有不值得去解决的问题,也没有不值得去学习的技术。

如果这篇文章对你有所帮助,欢迎浏览博客中的其他文章,也欢迎交流技术经验与想法。

关于我  ·  GitHub  ·  邮件联系