VSCode lets you fold/unfold regions with keys:

  * Fold All: CTRL+K, CTRL+0 (zero)
  * Fold Level [n]: CTRL+K, CTRL+[n]
  * Unfold All: CTRL+K, CTRL+J
  * **Fold Region: CTRL+K, CTRL+[**
  * Unfold Region: CTRL+K, CTRL+]



So, within the case statement _CTRL+K, CTRL+[_ is hopefully close enough to 
what you want.

The [rainbow tabs 
extension](https://marketplace.visualstudio.com/items?itemName=oderwat.indent-rainbow)
 is also nice for Nim with VSCode. 

Reply via email to