Miscellaneous VS Code Stuff
Temporarily Hiding Comments in VS Code Editor Date: 29 June 2026 Section Contents VS Code Built-In Fold and Unfold Comments Features VS Code Hide Comments Extension Converting Line Comments to Block Comments VS Code folding: Article(s) and Official Documentation VS Code Built-In Fold and Unfold Comments Features VS Code built-in feature to collapse multi-line block (/* ... */) comments out of sight. However, when I tried it, it collapsed only some sets of contiguous // comments. Command: Fold All Comments -> Ctrl + K then Ctrl + / First time, I tried above keyboard shortcut it did not work. The command thru command palette worked. Later the keyboard shortcut also worked. Command: UnFold All -> Ctrl + K then Ctrl + J First time, I tried it via command palette, it gave some error related to 'Pylance: Unfold All Docstrings'. Looks like when I typed Unfold All, that command got selected which seems to be different from standard Unfold All. T...