添加notepad++到右键菜单
2019-08-06 本文已影响0人
char1esw
最近使用notepad++,我下载的是免安装版zip格式,zip解压缩就能用,由于不是exe方式安装,右键菜单中没有notepad++一键式打开方式,想要打开文件想要使用notepad++打开时,需要右键=>打开方式=>然后在默认程序中选择notepad++打开文件,操作比较麻烦。于是把它添加到右键菜单中,用起来方便些。

1. 下载notepad++包
登录notepad官网https://notepad-plus-plus.org

本电脑是windows 64位系统,所以下载64位的zip格式

把下载的zip文件解压到路径D:\Notepad++


2.添加至注册表
win+R运行,输入regedit打开注册表

在HKEY_CLASSES_ROOT/*/Shell下新建项Notepad++,在Notepad++下新建项command

点击Notepad++,鼠标左键双击名称或者右键点击修改,修改数据为Notepad++

在Notepad++右键新建字符串值

修改新建的字符串值名称为Icon,数据为notepad++解压位置的exe目录,D:\Notepad++\notepad++.exe,
这一步是给快捷方式添加图标

修改command数据值为notepad++.exe路径+空格+%1,
即D:\Notepad++\notepad++.exe %1

3. 设置完成,右键多了notepad++菜单选项
