Closed h1pstah closed 3 years ago
Example: Interactive Python in VSCode uses #%% to denote cells. I want to collapse the individual cells without needing to define a character sequence denoting its end.
I tried : "python": { "beginRegex": "#%%", "endRegex": "#%%", "foldLastLine": false }
What happens: Certain cells are uncollapsible (it looked like it's every other one but not quite)
For code cells, you should use:
"python": [ { "separatorRegex": "#\\s*%%" }, ],
Thanks :) !
Example: Interactive Python in VSCode uses #%% to denote cells. I want to collapse the individual cells without needing to define a character sequence denoting its end.
I tried : "python": { "beginRegex": "#%%", "endRegex": "#%%", "foldLastLine": false }
What happens: Certain cells are uncollapsible (it looked like it's every other one but not quite)