1、打开记事本,如下图
2、鼠标右击复制以上内容,然后粘贴到已打开的记事本上。
Windows Registry Editor Version 5.00 [HKEY_CLASSES_ROOT.txt] @="txtfile" "Content Type"="text/plain" [HKEY_CLASSES_ROOT.txtShellNew] "NullFile"="" [HKEY_CLASSES_ROOT xtfile] @="文本文档" [HKEY_CLASSES_ROOT xtfileshell] [HKEY_CLASSES_ROOT xtfileshellopen] [HKEY_CLASSES_ROOT xtfileshellopencommand] @="NOTEPAD.EXE %1"
3、然后我们保存当前txt文件,命名为txtfile.reg,保存到桌面。
4、在桌面上我们重新打开txtfile.reg这个文件;然后点击是确认操作。最后重启电脑文件才会生效。
5、重启电脑后右击桌面任意位置,新建文本文档那个选项已经出现了。