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
- Open VS Code
- Go to Extensions (Ctrl+Shift+X / Cmd+Shift+X)
- Search for "Copy Object Name"
- Click Install
How to Use
- 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.
| |