Opened files fully expanded
-
Hi,
In Notepad++, I have a working memo, and I open the useful parts.
But every day, when I open Notepad++, since an update, the file is completely unfolded. -
@Christian-Hoffmann
Is your “working memo” highlighted in a built-in language (like C++ or Python) or a user-defined language?I know almost nothing about code folding in Notepad++, because I never make use of it. That said, your answer to my above question might help someone more knowledgeable solve your problem.
I’m pretty sure that Notepad++ does not store code folding information to the hard drive. If that’s true, there’s no way for Notepad++ to remember how your code was folded between sessions.
-
Tested v8.8.1 being quite a new and clean portable and reopens
new 1
foldedSet as Python language folded at
if
on line 1. Programmatically regarded as line 0.new 1
:if a: b
session.xml
:<?xml version="1.0" encoding="UTF-8" ?> <NotepadPlus> <Session activeView="0"> <mainView activeIndex="0"> <File firstVisibleLine="0" xOffset="0" scrollWidth="39" ... snipped ...> <Fold line="0" /> </File> </mainView> <subView activeIndex="0" /> </Session> </NotepadPlus>
See the xml tag
Fold
. Folding is saved and restored.More details might be needed to solve your issue, like version being used … as
?
->Debug info...
shows.