Skip to content

Jonnokc/copy-object-name

Repository files navigation

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.

About

A VSCode extension that allows you to copy the name of the object selected in the navigation tree

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published