Notepad++配置文件不在其安装目录下,其配置文件config.xml位置:
C:\Documents and Settings\系统用户名\Application Data\Notepad++
(Windows xp)
C:\Users\系统用户名\AppData\Roaming\Notepad++
(Windows 7+)
打开config.xml后,找到“History”,修改“nbMaxFile”后的数字为0即可实现不保存文件打开历史;找到“FindHistory”,修改“nbMaxFindHistoryPath”、“nbMaxFindHistoryFilter”、“nbMaxFindHistoryFind”、“nbMaxFindHistoryReplace”后的数字为0即可实现不保存查找替换历史。
保存以上修改后
不需要设置config.xml属性为“只读”。