Stop hunting for file paths. Copy them instantly from anywhere.
What It Does
Path Master adds 6 path-copy commands to VS Code — reachable from the right-click menu, keyboard shortcuts, and the Command Palette — with full multi-file and cross-platform support.
Right-click any file → 📋 Path Master → done.
Commands & Shortcuts
| Command | What You Get | Windows | macOS |
|---|---|---|---|
| 📄 Copy File Name | app.ts |
Ctrl+Alt+N |
Cmd+Alt+N |
| 📝 Copy File Name (No Ext) | app |
Ctrl+Alt+X |
Cmd+Alt+X |
| 📂 Copy Relative Path | src/components/app.ts |
Ctrl+Alt+R |
Cmd+Alt+R |
| 🐧 Copy Relative Path (Unix) | src/components/app.ts (Windows → /) |
Ctrl+Shift+Alt+R |
Cmd+Shift+Alt+R |
| 🗂️ Copy Full Path | C:\Users\dev\project\src\app.ts |
Ctrl+Alt+F |
Cmd+Alt+F |
| 🐧 Copy Full Path (Unix) | C:/Users/dev/project/src/app.ts (Windows → /) |
Ctrl+Shift+Alt+F |
Cmd+Shift+Alt+F |
Shortcuts work when the editor or Explorer sidebar is focused.
Reassign any shortcut:Ctrl+K, Ctrl+S→ search the command name → click ✏️.
Four Ways to Access Commands
1 — Right-click menu (Explorer, editor tab, or inside the editor)
📋 Path Master
├── 📄 Copy File Name Ctrl+Alt+N
├── 📝 Copy File Name (No Ext) Ctrl+Alt+X
├── 📂 Copy Relative Path Ctrl+Alt+R
├── 🐧 Copy Relative Path (Unix) Ctrl+Shift+Alt+R
├── 🗂️ Copy Full Path Ctrl+Alt+F
└── 🐧 Copy Full Path (Unix) Ctrl+Shift+Alt+F
2 — Keyboard shortcuts
Press any shortcut from the table above while the editor or Explorer is focused.
3 — Command Palette
Ctrl+Shift+P → type Path Master → pick a command.
4 — Multi-file selection
Hold Ctrl (or Cmd on macOS), click multiple files in Explorer, then right-click → Path Master. All paths are copied at once in your configured format.
Multi-file Output Formats
Given three files selected: src/app.ts, src/index.ts, src/utils.ts
"newline" (default) |
"comma" |
"array" |
|---|---|---|
|
|
|
Settings
Open Settings (Ctrl+,) and search Path Master, or add to settings.json:
{
// Show a notification toast after copying
"pathMaster.showNotifications": true,
// How long the status bar message stays (milliseconds)
"pathMaster.notificationDuration": 3000,
// Separator: "auto" (OS default) | "forward" (/) | "backward" (\)
"pathMaster.defaultPathSeparator": "auto",
// Multi-file format: "newline" | "comma" | "array"
"pathMaster.copyMultipleFilesFormat": "newline"
}
Why Path Master?
| Feature | Path Master | Built-in VS Code | Other Extensions |
|---|---|---|---|
| Copy file name | ✅ | ✅ | ✅ |
| Copy file name without extension | ✅ | ❌ | ⚠️ Some |
| Copy relative path | ✅ | ✅ | ✅ |
| Copy full path | ✅ | ✅ | ✅ |
| Multi-file selection | ✅ | ❌ | ⚠️ Some |
| Unix/Windows path toggle | ✅ | ❌ | ⚠️ Rare |
| Configurable output format | ✅ | ❌ | ❌ |
| Shortcuts for all 6 commands | ✅ | ⚠️ 1 only | ⚠️ Limited |
| Works from editor tabs | ✅ | ❌ | ⚠️ Some |
| Smart notification preview | ✅ | ❌ | ❌ |
Installation
From the Marketplace:
- Open VS Code
Ctrl+P→ run:ext install Misrilal-Sah.path-master
From the CLI:
code --install-extension Misrilal-Sah.path-master
Contributing
- Fork the repository
git checkout -b feature/my-feature- Make your changes — run
npm run compileto verify they build cleanly npm test— ensure all tests pass- Open a Pull Request
Issues & Feedback
Found a bug or have an idea? Open an issue on GitHub.
Please include: VS Code version · OS · steps to reproduce.
Changelog
See CHANGELOG.md for version history.
License
MIT.