Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Split / Copy PathNew to Visual Studio Code? Get it now.
Split / Copy Path

Split / Copy Path

Nicholas J. Fiorello Jr.

|
1,257 installs
| (0) | Free
Copy selected folder/file as node path.join statement
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Split / Copy Path README

Adds right-click menu to explorer to split the path of the selected file or folder and copy it to the clipboard as a node path.join call.

path.join('path', 'to', 'file.js')

Extension Settings

  • splitCopyPath.includeDirname: include __dirname as first parameter.
  • splitCopyPath.useDoubleQuotes: prefer double quotes around parameters.
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft