0

windows 10 19044.1706

vscode 1.67.2

python 3.10.2 (venv)


I've read this post

I'm still looking for fix settings

1

2

gesto
  • 11
  • 1
  • Does this answer your question? [VSCode how to stop automatic expanding of collapsed code](https://stackoverflow.com/questions/58783521/vscode-how-to-stop-automatic-expanding-of-collapsed-code) – wovano Jun 08 '22 at 10:38
  • I know you wrote you already read that question, but the fact that you don't like the answer is not a valid reason to ask the same question again. As far as I can tell, it's an exact duplicate. If you're asking for something different, please clarify how this question is different than the other one. – wovano Jun 08 '22 at 10:41

1 Answers1

-1

I'm guessing your problem is that under some operations, VS Code automatically expands your already collapsed code.

As far as the picture you show, you remove the closing bracket after method b, then vscode's intellisense cannot get the end of method b. So that it includes both methods c and d after method b. Then methods a, b, c become a whole when folded.

Hope it helps with your question.

JialeDu
  • 6,021
  • 2
  • 5
  • 24