This extension adds a set of tools which help you generate internal import statements in a python project.
"Copy Python Path" is accessible from:
- Command
- Explorer contextual menu
- Editor contextual menu
- Editor title contextual menu
Copies the full module name of the current file to the clipboard.
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,
)
Inspiration from the Sublime Package: https://github.com/pokidovea/copy_python_path