The Py-Quick-Create extension for Visual Studio Code lets you quickly create Python files from import statements.
Features
Automatically create Python files with directories from import statements.
Open newly created Python file in the editor.
How to Use
Write an import statement in the Python format:
from x.y.z import A
With your cursor on the same line as the import statement, press Ctrl+F1 (or Cmd+F1 on macOS) to create the Python file at the location specified by the import statement.
Requirements
Visual Studio Code 1.80.0 or later
Extension Settings
This extension contributes the following command:
extension.createFolders: Create Python file from import statement
This extension contributes the following keybinding:
Ctrl+F1 (or Cmd+F1 on macOS): Run the command extension.createFolders