4

[win10] 推荐一个替代 notepad.exe 的 notepad 程序

 2 years ago
source link: https://hellodk.cn/post/876
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

[win10] 推荐一个替代 notepad.exe 的 notepad 程序

可以在 Microsoft Store 下载(直链如上),完美替代 notepad.exe


添加右键菜单 Edit with Notepads

下面我们动一下注册表,添加 「Edit with Notepads」的右键菜单项。

  1. Win + R 打开运行窗口,输入「regedit」回车,打开注册表页面
  2. 定位到 Computer\HKEY_CLASSES_ROOT\*\shell
  3. 选中 shell 右键 new 一个 key,命名为 Notepads (随你的便)
  4. 选中刚刚创建的 Notepads,查看注册表右边一栏,选中 Default,将其 Value 改为 Edit with Notepads(随你的便),确认 Type 是 REG_SZ
  5. 紧接着在右边一栏空白处 new 一个 String Value,Name 设置为 Icon,Value 设置为 C:\Users\YOUR_USERNAME\AppData\Local\Microsoft\WindowsApps\Notepads.exe
  6. 回到注册表左边这一栏,选中刚刚新建的 Notepads,然后右键 new 一个 key,左栏这边的 key 名称改为 command。右栏也有一个 Default 的 key-value pair。修改它的 data 为 "C:\Users\YOUR_USERNAME\AppData\Local\Microsoft\WindowsApps\Notepads.exe" "%1"。确认 Type 是 REG_SZ

这时候右键菜单已经有 Edit with Notepads 了。如果我的描述不是很直观,请参照描述和 Computer\HKEY_CLASSES_ROOT\*\shell 这个路径下的其他程序的右键菜单操作。比如 Intellij Idea、DataGrip 就会在此创建注册表项。

右键菜单的图标 Icon 没有搞定,其实可以随便选一个,但是这个 UWP 程序的启动程序似乎没有图标。有知道怎么解决的欢迎留言告知一下。
通过创建快捷方式更改快捷方式的属性➡️️Change Icon可以添加一个图标,但是获取到这个软件本身的图标然后设置是个问题……

标签: Windows, notepads

本作品采用 知识共享署名-相同方式共享 4.0 国际许可协议 进行许可。


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK