Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Filename SuggestionsNew to Visual Studio Code? Get it now.
Filename Suggestions

Filename Suggestions

anunay prakash

|
4 installs
| (0) | Free
Quickly pick and insert relative or absolute file paths into any editor.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Filename Suggestions

Quickly pick and insert file paths into any editor in VS Code.

This extension allows you to navigate your project folder structure using a QuickPick UI and insert relative or absolute file paths at the cursor position. Works for all file types — not just TOML.


Features

  • Browse workspace folders and subfolders recursively.
  • Insert relative or absolute paths.
  • Stops automatically when a file is selected or folder is empty.
  • Keybindings for instant access without typing commands.
  • Works in any file, any language.

Usage

Commands

Command Shortcut Description
Pick and Insert Relative Path Ctrl+Alt+P / Cmd+Alt+P (macOS) Inserts a path relative to the workspace root
Pick and Insert Absolute Path Ctrl+Shift+Alt+P / Cmd+Shift+Alt+P (macOS) Inserts the absolute path

Example

  1. Press Ctrl+Alt+P in the editor.
  2. A QuickPick UI opens showing folders/files in your workspace.
  3. Navigate using arrow keys or click.
  4. Select a file to insert its path at the cursor.
  5. Navigation stops automatically when a file is chosen.

Installation (Local / VSIX)

  1. Build the extension:
npm install
npm run compile

Install in VS Code (local .vsix)

vsce package
code --install-extension filename-suggestions-1.0.0.vsix

Development

Launch Extension Development Host: press F5 in VS Code. Source code is in src/extension.ts. Output bundle is in dist/extension.js (built with Webpack). Key scripts:

npm run compile     # Build the extension
npm run watch       # Watch for changes
npm run lint        # Run ESLint
npm run test        # Run tests (if configured)
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft