A lightweight, developer-focused VS Code extension that instantly changes your active terminal's directory (cd) to the location of your currently open file or selected folder.
No more manually copying paths or typing long paths in the terminal—just click and keep your terminal in sync with your workspace.
Features
This extension adds a custom Quick CD button (styled with a high-contrast, iOS-style app icon) to your editor title and Explorer sidebar menus.
- Editor Title Integration: Click the icon in the top-right corner of any active editor tab to instantly
cdthe terminal into that file's parent directory. - Explorer Sidebar Integration: Right-click any file or folder in the Explorer side panel:
- Selecting a Folder will
cddirectly into it. - Selecting a File will
cdinto its parent folder.
- Selecting a Folder will
- Zero-config Terminal Recovery: If you don't have an active terminal open, the extension automatically spins up a clean, dedicated terminal named
"Quick CD".
| Action | Result |
|---|---|
| Right-click on Folder | cd /path/to/folder |
| Right-click on File | cd /path/to/parent_of_file |
| Click Editor Title Icon | cd /path/to/active_file_parent |
How It Works
- Open a file or locate a directory in your VS Code workspace.
- Click the Quick CD icon in the editor title menu bar (top right).
- Alternatively, right-click a resource in your file explorer tree and select CD to location.
- The extension instantly focuses your active terminal (or creates one) and executes:
cd "/your/target/path"