How to configure Visual Studio Code so double click expands folders

· 1 min read

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

← Back to all posts