Skip to content
Kanin edited this page Jan 8, 2026 · 3 revisions

New Python Package

A simple VS Code extension that adds "New Python Package..." to the Explorer context menu. Right-click a folder, pick a name, and you get a proper Python package with __init__.py ready to go.

Features

  • Quick package creation - Right-click any folder, select "New Python Package..."
  • Custom __init__.py content - Set up default content with variables
  • Additional file generation - Automatically create related files based on rules
  • Variable system - Use ${name:pascal} and similar transforms in your templates
  • Parent package support - Auto-create __init__.py in parent directories
  • Template support - Use snippets or template files for more complex setups

Quick Start

  1. Install from the VS Code Marketplace
  2. Right-click any folder in the Explorer
  3. Click "New Python Package..."
  4. Type your package name
  5. Done!

Documentation

Basic Setup

{
  "new-python-package.initFileContent": "\"\"\"${name:pascal} package.\"\"\"",
  "new-python-package.openFilesAfterCreation": true,
  "new-python-package.ensureParentPackages": true
}

Links

New Python Package

Getting Started

Configuration

Guides

Links

Clone this wiki locally