问:想在右键菜单里面多加几个功能,怎么加,比如区块注释

答:其实notepad++的配置文件存放路径不在自己的软件路径,而存在于

xp:C:\Documents and Settings\Administrator\Application Data\Notepad++\contextMenu.xml

win7/8 :c:\users\xxx\AppDate\Roaming\Notepad++\contextMenu.xml

 

只需要修改此xml文件,并重启notepad++即可看到效果。

Notepad++ 右键菜单自定义配置

Notepad++ 右键菜单自定义配置

代码:

<Item id="0"/>
<Item MenuEntryName="Edit" MenuItemName="Toggle Single Line Comment"/>
<Item MenuEntryName="Edit" MenuItemName="Block Comment"/>
<Item MenuEntryName="Edit" MenuItemName="Block Uncomment"/>

 

相关文章:

  • 2022-02-12
  • 2021-11-15
  • 2021-05-23
  • 2021-09-07
  • 2021-12-20
  • 2022-01-20
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-08-05
相关资源
相似解决方案