Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Quick CD to FileNew to Visual Studio Code? Get it now.
Quick CD to File

Quick CD to File

Mike Fuller

| (0) | Free
Quickly change your terminal directory to the current file or folder's location.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Quick CD to File

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 cd the 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 cd directly into it.
    • Selecting a File will cd into its parent folder.
  • 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

  1. Open a file or locate a directory in your VS Code workspace.
  2. Click the Quick CD icon in the editor title menu bar (top right).
  3. Alternatively, right-click a resource in your file explorer tree and select CD to location.
  4. The extension instantly focuses your active terminal (or creates one) and executes:
    cd "/your/target/path"
    
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2026 Microsoft