Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Get File PathNew to Visual Studio Code? Get it now.
Get File Path

Get File Path

Preview

Gowsalya Anantharaj

|
2 installs
| (0) | Free
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

🪄 Get File Path — VS Code Extension

This extension allows you to quickly insert the relative path of a file into your active text editor. You can:

  • Trigger the command from the Command Palette

✨ Features

  • 📎 Insert relative path of any file into the current cursor location
  • 🧭 Automatically opens file picker if no file URI is passed
  • 💡 Works in any text-based file: HTML, Markdown, JS, etc.

🚀 How to Use

Option 1: Use the Command Palette

  1. Open any text file (e.g., index.html)
  2. Place your cursor where you want to insert the path
  3. Press Ctrl+Shift+P (or Cmd+Shift+P on Mac)
  4. Type and run: Insert File Path
  5. Pick a file — its relative path will be inserted
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft