Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Copy File Name OnlyNew to Visual Studio Code? Get it now.
Copy File Name Only

Copy File Name Only

Pritam Ghosh

|
59 installs
| (0) | Free
Copy only the file name without the extension or the full path.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Copy File Name Only

A Visual Studio Code extension that allows you to quickly copy file names with or without their extensions directly from the explorer context menu.

Features

  • Copy just the file name (with extension)
  • Copy file name without extension
  • Works from explorer context menu
  • Works from editor title context menu

Usage

Right-click on any file in the explorer or editor tab to access two new options:

  1. Copy File Name - Copies the complete file name (e.g., "script.js")
  2. Copy File Name Without Extension - Copies only the name part (e.g., "script")

Copy Option

Commands

This extension contributes the following commands:

  • copyFilename: Copy the full file name with extension
  • copyFilenameWithoutExtension: Copy the file name without its extension

Installation

  1. Open VS Code
  2. Open the Extensions view (Ctrl+Shift+X or Cmd+Shift+X)
  3. Search for "Copy File Name Only"
  4. Click Install

Requirements

  • VS Code version 1.67.0 or higher

Release Notes

1.0.6 (Current)

  • Initial release
  • Added support for copying file names with and without extensions
  • Added context menu integration

Contributing

The source code for this extension is available on GitHub. Contributions are welcome!

License

This extension is licensed under the MIT License.

Author

Pritam Ghosh

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft