Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>filename-providerNew to Visual Studio Code? Get it now.
filename-provider

filename-provider

JimmyFutureman

|
44 installs
| (1) | Free
Puts your filepath at the top of each file on create and save
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

README

Filename-Provider Extension

The "filename-provider" extension automatically adds a file path comment at the top of your files when they are created or saved in Visual Studio Code.

Use case

I build a lot with AI and use a repro flattener to help the AI understand the relationships between files. Including the filename at the top of each file when providing full files is a game changer in helping it stay focused and reference correctly.

Features

  • Adds a comment at the top of the file with its relative path in the workspace.
  • Supports different comment styles based on the file's language.

Supported Languages

  • JavaScript / TypeScript (//)
  • JavaScript React / TypeScript React (//)
  • CSS / SCSS (/* ... */)

Examples

For a TypeScript file:

// src/extension.ts

For a JavaScript React file:

// src/App.js

For a CSS file:

/* styles/main.css */
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft