microsoft / microsoft/vscode

Better UX: Add a 'new file/folder' button on folder hover in file explorer

Open
#332,105 4 comments 2 reactions 1 assignee Claimed by @lramos15 View on GitHub
feature-request file-explorer
Dominant language
TypeScript
Stars
193k
Forks
42.4k
PR merge metrics
PR metrics pending

Description

https://github.com/user-attachments/assets/e818b6a9-7237-4452-bd6e-d611edd7cbc6

## Problem
Currently, adding a file/folder requires right-click → New File, which is 3 clicks.
Or if you had to use the current 'New File...' button, u have to select your desired folder,
which would take at most two clicks, and this causes annoying mouse traveling each time.

## Solution
Show a '+' button when hovering a folder in the Explorer view.
Clicking it opens an inline input to name the new file/folder.

## Benefit
- Reduces clicks from 3 or 2 to 1
- The old button is on top of screen, while the desired folder could be on bottom, that slows down devs
- Improves discoverability
- Consistent with existing hover actions in VS Code

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.