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

Copy Python Path

kawamataryo

|
6,982 installs
| (3) | Free
Copy python dotted path to clipboard
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Copy Python Path

installs E2E

An VS Code extension to copy python dotted paths to the clipboard.

Features

Would you like to get the python path, e.g. when running unittest?

When the copy python path command is executed, it copies the python dotted path to the clipboard. It also works with context menus.

feature

Configuration

If you want to add the workspace folder name to the beginning of the dotted path, add the following setting to setting.json.

{
  "copyPythonPath.addModuleRootName": true // default false
}

Notice

  • This extension works only with python3 files.

License

MIT

Contributing

Contributions are welcome 🎉
We accept contributions via Pull Requests.

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