Skip to content

[BUG] Code folding is no longer being saved when I close and reopen Notepad++ #16597

@dancoding

Description

@dancoding

Is there an existing issue for this?

  • I have searched the existing issues

Description of the Issue

Formerly, when I closed the app and reopened it, all the portions of code that were "folded" were retained. Since one of the recent updates (I believe it was 8.8), this no longer works. When I relaunch the app, all the code in every open file is unfolded. This is very inconvenient, as I've come to depend on code folding persisting between sessions.

The languages I'm using are JavaScript and PHP. I've been using Notepad++ for years, and this is the first time I've had this problem.

I checked my settings under Preferences > Backup, and the checkbox for "Remember current session for next launch" is still checked, just like it has always been. (See attached screenshot.) Thanks in advance for your help!

Image

Steps To Reproduce

  1. Open some JavaScript and/or PHP files in NPP.
  2. Fold some sections of code (e.g., functions).
  3. Close NPP.
  4. Reopen NPP.

Current Behavior

All code is unfolded.

Expected Behavior

The sections that were folded when I closed the app should still be folded.

Debug Information

Notepad++ v8.8.1   (64-bit)
Build time : May  3 2025 - 18:41:09
Scintilla/Lexilla included : 5.5.6/5.4.4
Boost Regex included : 1_85
Path : C:\Program Files\Notepad++\notepad++.exe
Command Line : 
Admin mode : OFF
Local Conf mode : OFF
Cloud Config : OFF
Periodic Backup : ON
Placeholders : OFF
Scintilla Rendering Mode : SC_TECHNOLOGY_DIRECTWRITE (1)
Multi-instance Mode : monoInst
File Status Auto-Detection : cdEnabledNew (for current file/tab only)
Dark Mode : OFF
OS Name : Windows 11 Pro (64-bit)
OS Version : 24H2
OS Build : 26100.4061
Current ANSI codepage : 1252
Plugins : 
    mimeTools (3.1)
    NppConverter (4.6)
    NppExport (0.4)

Anything else?

No response

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions