Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>CopyFilePathWithPrefixAndPostfixNew to Visual Studio Code? Get it now.
CopyFilePathWithPrefixAndPostfix

CopyFilePathWithPrefixAndPostfix

eugene-zvg

|
26 installs
| (1) | Free
Allows to add custom text before and after the file path when copying it into clipboard.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Features

Allows copying file path to clipboard with custom prefix and postifix

Usage

This package includes two commands: copyfilepathwithprefixandpostfix.copyFilePath and copyfilepathwithprefixandpostfix.copyFilePathWithLineNumber, each of which can accept two string arguments: prefix and postfix. Prefix would be added before the file path and postfix after prior to copying it to the clipboard.

The following example would copy bundle exec rspec [PATH TO THE CURRENT FILE]:[LINE NUMBER] to the clipboard:

  {
    "before": ["<leader>", "f", "r"],
    "commands": [{
      "command": "copyfilepathwithprefixandpostfix.copyFilePathWithLineNumber",
      "args": ["bundle exec rspec "]
      }
    ],
  },

LICENSE

MIT

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