Where does Notepad++ maintain its list of currently opened files?

前端 未结 6 1697
有刺的猬
有刺的猬 2021-02-19 08:40

I am using Notepad++ on my Windows machine and by mistake I opened a 64MB file. Now my Notepad++ is stuck permanently and I am not able to use it.

Is there any configura

相关标签:
6条回答
  • 2021-02-19 09:07

    C:\Users\USER_NAME\AppData\Roaming\Notepad++\session.xml

    0 讨论(0)
  • 2021-02-19 09:07

    You can also find out directly from Notepad++ and change where it stores this vital information. As mentioned in this answer look in Settings > Preferences > Backup: Backup path. There are also other useful settings such as backup frequency.

    You can also find session.xml which shows information on the temporary, unsaved files in its parent directory.

    0 讨论(0)
  • 2021-02-19 09:08

    One more thing to add here. The Old Session.xml file would have links to all the files that were open there (File Paths). They should match for the New PC. The User Name, Program Files folder (32bit or 64bit) etc should be the same. Else Notepad++ will open a blank session.

    0 讨论(0)
  • 2021-02-19 09:16

    if your notepad++ have been installed.

    there must be in :

    %appdata%\Notepad++\session.xml

    %appdata% means by default:

    • if you're using windows 7
      C:\Users\{username}\AppData\Roaming

    • if you're using windows xp or older version)
      C:\Documents and Settings\{username}\Application Data


    if your notepad++ is portable

    there must be in :

    your notepad++ programs folder.


    the file for notepad++ portable or notepad++ installed is same:

    session.xml

    0 讨论(0)
  • 2021-02-19 09:17

    Alternatively, open notepad++.exe with the -nosession command line argument.

    0 讨论(0)
  • 2021-02-19 09:30

    This article helped me figure out how to move/copy my unsaved open tabs to another PC.

    Install notepad++ first if not already.

    Make sure notepad++ is not open/running on new PC.

    On the old PC copy the backup folder located C:\Users\xxxx\AppData\Roaming\Notepad++ to the new one (location may vary on OS). Also copy the session.xml file.

    Open notepad++ and all the open unsaved tabs should appear with content.

    0 讨论(0)
提交回复
热议问题