I have a habit of using code editors for notes in the following fashion:
a topic
. a note
? a question regarding the note
- a to do item
. some more details
. another note
. more details
another topic
...
What I like about VS Code is that it allows to fold (collapse) blocks in txt files based on their indentation (like for Python):
a topic
+ . a note
. another note
. more details
another topic
...
What I don't like, though, is that it also includes empty lines into collapsed blocks: the line after . more details has no indentation, but when I collapse that block I get
a topic
+ . a note
+ . another note
another topic
...
while I want it to be
a topic
+ . a note
+ . another note
another topic
...
Can you suggest what options should I change to get this difference about collapsing?
Folding Strategytoindentation. And yes, if you have that set toautoit will use the folding strategy contributed by the language service, if there is one. What is your language? It works for me in a.txtfile with the folding strategy set toindentationorauto(probably becauseautofalls back toindentationin.txtfiles).