Skip to content
Go back

How to configure Visual Studio Code so double click expands folders

| Authored: 29 Jun, 2025 | Edited: 2 days ago

To configure Visual Studio Code so that single-clicking a folder in the Explorer only selects it and a double-click is required to expand or open it:

  1. Open Settings (Cmd + ,)
  2. Search for tree.expandMode
  3. Set it to doubleClick

This setting prevents folders from expanding unless you intentionally double-click them, making navigation less error-prone when selecting multiple items.

References:

VSCode tree expand mode double click


Share this post on:

Previous Post
How to add markdown footnote support in Astro
Next Post
How to avoid breaking globally installed node tools during Homebrew NVM upgrades