Skip to content

Latest commit

 

History

History
49 lines (32 loc) · 1.13 KB

README.md

File metadata and controls

49 lines (32 loc) · 1.13 KB

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