Skip to content
| Marketplace
Sign in
Visual Studio Code>Programming Languages>Copy Python Path (Remote)New to Visual Studio Code? Get it now.
Copy Python Path (Remote)

Copy Python Path (Remote)

adityabaradwaj

|
3,978 installs
| (0) | Free
Python imports utils.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Python Path

This extension adds a set of tools which help you generate internal import statements in a python project.

Features

"Copy Python Path" is accessible from:

  • Command
  • Explorer contextual menu
  • Editor contextual menu
  • Editor title contextual menu

Basic Copy Python Path

Copies the full module name of the current file to the clipboard.

Basic Copy Python Path

Generate import statement

Copies an import statement for the selected text to the clipboard. In case of a simple selection, the generated statement will be:

from module.name import selected_text

In case of a multiple selection, the generated statement will be:

from module.name import (
    selected_text_1,
    selected_text_2,
    [...]
    selected_text_n,
)

Generate import statement

Miscellaneous

Inspiration from the Sublime Package: https://github.com/pokidovea/copy_python_path

Credits

  • https://github.com/mgesbert
  • https://github.com/nfau
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft