microsoft / microsoft/vscode

Add Finder actions to open VS Code or terminal window here

Open
#332,238 0 comments 1 reaction 1 assignee Claimed by @anthonykim1 View on GitHub
feature-request terminal
Dominant language
TypeScript
Stars
193k
Forks
42.4k
PR merge metrics
PR metrics pending

Description

Ghostty has `New Ghostty Tab Here` and `New Ghostty Window Here` in Finder and I found these pretty useful.

They are macOS Services declared in [Ghostty-Info.plist](https://github.com/ghostty-org/ghostty/blob/e77b2309fca3a27db1123a4f904b7fb432ee7162/macos/Ghostty-Info.plist#L66-L106) and handled by [ServiceProvider.swift](https://github.com/ghostty-org/ghostty/blob/e77b2309fca3a27db1123a4f904b7fb432ee7162/macos/Sources/Features/Services/ServiceProvider.swift#L13-L74). The handler uses the selected folder as the cwd, or the selected file's parent folder, deduplicates paths, and opens one tab/window for each cwd.

VS Code could consider doing something similar on macOS:

- `New VS Code Window Here`
- `New VS Code Terminal Here`

The first would be similar to `code --new-window `. The second could open the existing dedicated terminal window (`Terminal: New Terminal Window`) with the selected directory as its cwd.

For files, use the parent folder; for folders, use the folder itself. Multiple selections could be deduplicated, matching Ghostty.

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.