Skip to content

Installation

Install from JetBrains Marketplace

  1. Open SettingsPluginsMarketplace.
  2. Search for BetterPy.
  3. Click Install and restart the IDE when prompted.

Install from Disk

  1. Download the latest .zip from the GitHub Releases page.
  2. Open SettingsPluginsInstall Plugin from Disk…
  3. Select the downloaded .zip file and restart the IDE.

First-Use Orientation

After installation, BetterPy is ready to go with sensible defaults.

Status Bar Widget

Look for the BetterPy widget in the bottom status bar. It shows the plugin status and provides quick access to settings.

Settings Panel

Open SettingsToolsBetterPy to see all feature toggles organized by group:

  • Typing & Type Hints
  • Refactoring & Code Transformations
  • Productivity Actions
  • IDE Customization

Each feature can be individually enabled or disabled. Incubating features are marked with .


Your First Intention: Make Parameter Optional

Try BetterPy right away with the Make Parameter Optional intention:

def create_user(name: str, email: str, age: int):
    pass
# Place caret on `age` parameter
def create_user(name: str, email: str, age: int | None = None):
    pass

How to invoke: Place the caret on a required parameter and press Alt+Enter, then select "BetterPy: Make optional".

Tip

Make Parameter Optional adds a default value to the selected parameter. Use the complementary Make Parameter Mandatory intention to remove a default value.