Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>vscode-smart-path-copyNew to Visual Studio Code? Get it now.
vscode-smart-path-copy

vscode-smart-path-copy

santi-h

|
1 install
| (0) | Free
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

vscode-smart-path-copy

Copies a command depending on the type of file that is active.

gif

Trigger it with a shortcut. For example:

{
  "key": "shift+cmd+3",
  "command": "vscode-smart-path-copy.run",
  "when": "editorTextFocus"
}

Marketplace link

Packaging

Run the following to create the .vsix file:

nvm use `cat .node-version` && \
npm install && \
npm run compile && \
vsce package

This command assumes that you installed vsce, which can be done with npm install -g @vscode/vsce

Installing

Once packaged, go to "Extensions" in VSCode, then "Install from VSIX..." and load the packaged file.

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