Skip to content

mgesbert/vscode-python-path

Repository files navigation

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

About

VS Code extension for handling python module names

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published