Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can no longer fold python dictionaries in VS Code

I used to be able to collapse (fold) python dictionaries just fine in my VS Code. Randomly I am not able to do that anymore. I can still fold classes and functions just fine, but dictionaries cannot fold, the arrow on the left hand side just isn't there. I've checked my settings but I can't figure out what would've changed. I'm not sure the best forum to go to for help, so I'm hoping this is ok. Any ideas?

like image 596
YangTegap Avatar asked Jun 06 '26 09:06

YangTegap


1 Answers

For me, it wasn't a problem with Pylance but rather with Jupyter[*] extensions.

I disabled all my extensions and enabled them one by one. See that enabling the Python extension will not just enable Python extension. I disabled Jupyter related extensions and Pylance wasn't the problem.

like image 105
AhmetCan Avatar answered Jun 08 '26 23:06

AhmetCan



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!