Copy File Name (Faster)Copy only a file or folder name from a VS Code context menu. No parent path, dialog, or notification is added. Use ItRight-click a file or folder in the Explorer, or an open editor tab, and choose Copy File Name to omit a file extension or Copy File Name with Extension to include it. Paste the result wherever you need it.
How It WorksVS Code passes the selected resource URI to the command. The extension takes the final path segment and writes it using VS Code's Browser IDEsThe extension requires VS Code 1.89.1 or later and is bundled for both the Node.js and web extension hosts. In remote workspaces, it prefers the workspace extension host and can fall back to the web extension host. It uses VS Code's clipboard API rather than direct browser clipboard access. In an IDE such as Agentforce, clipboard writes still depend on the host exposing the required VS Code API and the browser allowing clipboard access. The host's extension and clipboard policies apply. This dual-host package supports both workspace and browser extension hosts when the host restores extensions after a session restart. Compared With Other Options
Use this extension when you need the name alone; use VS Code's path commands when the location is needed too. |

