Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Copy Object NameNew to Visual Studio Code? Get it now.
Copy Object Name

Copy Object Name

Jon

|
3 installs
| (0) | Free
Copy the name of an object from the navigation tree without system path
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Copy Object Name

A simple VS Code extension that allows you to quickly copy the name of a file or folder without the full system path.

Features

This extension adds a "Copy Object Name" command to the explorer context menu. When used:

  • Copies just the name of the selected file or folder to the clipboard
  • Works in both the file explorer and from the editor
  • Shows a confirmation message indicating what was copied
  • Can be triggered with a keyboard shortcut (Cmd+Shift+C on Mac) when the explorer is focused

Use Cases

  • Quickly copy file names for documentation or communication
  • Get clean file names without the full path cluttering your clipboard
  • Perfect for when you need just the name without manually editing the path

Installation

  1. Open VS Code
  2. Go to Extensions (Ctrl+Shift+X / Cmd+Shift+X)
  3. Search for "Copy Object Name"
  4. Click Install

How to Use

From Explorer Context Menu

  1. Select an Object in the navigation tree. Use the ctrl+shift+c default keybinding to copy the object name

Using Keyboard Shortcut

  • Focus the explorer (click on any file or folder)
  • Press Cmd+Shift+C (Mac) or Ctrl+Shift+C (Windows/Linux)

Extension Settings

This extension does not add any settings.

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