A VS Code extension that allows you to easily copy file paths from the editor toolbar.
Features
📋 One-click copy - Add buttons to the editor toolbar for instant path copying
🎯 Two copy modes - Copy absolute or relative paths as needed
💬 Instant feedback - Notification displays the copied path for confirmation
⚡ Lightweight - No configuration needed, works out of the box
Usage
Open any file in VS Code
Look for the copy icons in the editor toolbar (top-right area)
Click to copy either:
First icon: Absolute path (full system path)
Second icon: Relative path (relative to workspace root)
The path is automatically copied to your clipboard
Installation
From VS Code Marketplace
Open VS Code
Go to Extensions (Ctrl+Shift+X / Cmd+Shift+X)
Search for "Editor Path Copier"
Click Install
For Non-VS Code Editors (e.g. Cursor)
If you're using VS Code-based editors that don't have access to the VS Code marketplace, run:
# Download and install the extension
curl --compressed -L -o editor-path-copier.vsix "https://marketplace.visualstudio.com/_apis/public/gallery/publishers/kosukesaigusa/vsextensions/editor-path-copier/latest/vspackage"
cursor --install-extension editor-path-copier.vsix
rm editor-path-copier.vsix
Development
Prerequisites
Node.js 18+
npm
Setup
git clone https://github.com/kosukesaigusa/editor-path-copier.git
cd editor-path-copier
npm install
Available Scripts
npm run compile # Compile TypeScript
npm run watch # Watch mode compilation
npm run check # Run Biome linting and formatting
npm run package # Create VSIX package
Testing
Press F5 to run the extension in a new Extension Development Host window
Open any file and test the copy functionality
Contributing
Contributions are welcome! Please see CONTRIBUTING.md for guidelines.