Skip to content
项目

关于

📂 macOS Finder 工具栏应用,可在 Visual Studio Code 中打开当前文件夹

开发工具

这些数字如何统计

实测星标增长

24小时
0
7天
-1
15天
-1
1个月
正在收集历史

各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。

README.md

原文

Open in Code app icon

Open in Code

Open the folder you are viewing in Finder—or the folder containing a selected item—in Visual Studio Code with one click.

Latest release macOS 12 or newer MIT license

Install · Set up · How it works · Contribute

Open in Code takes a selected Finder item and opens its folder in Visual Studio Code

Open in Code is a small, native macOS utility built for the Finder toolbar. It gets you from the file you are looking at to the matching VS Code workspace without opening a terminal or navigating to the folder again.

One click Finder-aware Stable or Insiders
Lives in the Finder toolbar, ready whenever you need it. Uses your selection when available and the current Finder window when it is not. Prefers Visual Studio Code and falls back to Visual Studio Code Insiders.

Requirements

  • macOS 12 or newer
  • Visual Studio Code or Visual Studio Code Insiders

Install

Homebrew

brew install --cask sozercan/repo/open-in-code

Direct download

Download the app from GitHub Releases, then move Open in Code.app to /Applications.

Add it to Finder

  1. Open /Applications in Finder.
  2. Hold ⌘ Command and drag Open in Code to the Finder toolbar.
  3. Drop it wherever you want the button to live.

Hold ⌘ Command while dragging the button again to reposition or remove it.

How it works

Open a Finder window, optionally select an item, and click Open in Code.

Finder state What opens in VS Code
A folder is selected The selected folder
A file or Finder package is selected Its containing folder
Multiple items are selected The first selected item's folder
Nothing is selected The folder shown in the front Finder window

Finder permission

[!NOTE] On first use, macOS asks whether Open in Code may control Finder. Allow access so the app can read the current Finder selection.

If Finder access was previously denied

Enable Open in Code → Finder in the appropriate settings pane:

  • macOS 13 or newer: System Settings → Privacy & Security → Automation
  • macOS 12: System Preferences → Security & Privacy → Privacy → Automation

Contributing

Source builds, tests, packaging, and release instructions live in CONTRIBUTING.md.


Made for macOS · Licensed under the MIT License

探索相关项目

加载中…