VSCode settings discovery I'd like to share

Annoyed by seeing all those rescript generated files in your explorer?

Screen Shot 2022-10-02 at 9.50.43 AM

Put something like this in your settings.json

  "explorer.fileNesting.expand": false,
  "explorer.fileNesting.patterns": {
    "*.res": "${basename}.bs.js, ${basename}.mjs"

Which turns rescript files into virtual folders

Screen Shot 2022-10-02 at 9.56.06 AM


This feature is nice QOL. Would love to see a “collapse all” for file nesting though. I always end up maneuvering my codebase and un-nesting everything lol

> Collapse Folders in Explorer

Doesn’t work for nested files, and I don’t want my folders collapsed XD