How do I remove a file from Notepad++ startup session?
I don't think notepad++.exe
uses the registry for this information as it uses xml
files for configuration.
The file information is stored in session.xml
, which is located in %AppData%\Notepad++\
for a standard installation or in the same directory as the notepad++.exe
executable for a portable installation.
You can use a different editor to edit session.xml
and remove the offending file information.
You should also be able to delete session.xml
and notepad++.exe
should create a new one. I haven't tried this.
Example session.xml
file entry:
<File firstVisibleLine="57" xOffset="0" scrollWidth="1701" startPos="1655" endPos="1655" selMode="0" offset="0" wrapCount="1" lang="PowerShell" encoding="-1" userReadOnly="no" filename="C:\Powershell\profile.ps1" backupFilePath="G:\apps\Notepad++\backup\profile.ps1@2025-08-08_155458" originalFileLastModifTimestamp="194636805" originalFileLastModifTimestampHigh="31180527" tabColourId="-1" RTL="no" tabPinned="no" mapFirstVisibleDisplayLine="-1" mapFirstVisibleDocLine="-1" mapLastVisibleDocLine="-1" mapNbLine="-1" mapHigherPos="-1" mapWidth="-1" mapHeight="-1" mapKByteInDoc="512" mapWrapIndentMode="-1" mapIsWrap="no" />
Further Reading: Configuration Files Details | Notepad++ User Manual