Skip to content

Add “New > Python File” option to Windows Explorer context menu during installation #128148

@Unknownuserfrommars

Description

@Unknownuserfrommars

Feature or enhancement

Proposal:

Hello Python Dev Team,

I’d like to suggest adding an option to create a new Python file directly from the Windows Explorer New context menu. This feature could be integrated into the Python installer for Windows. It would save users from having to manually configure the Windows Registry to achieve this functionality.

Proposed Behavior:

  • During installation, the installer could optionally add the necessary ShellNew registry keys for .py files. (In HEKY_CLASSES_ROOT, i believe)
  • Users could immediately create .py files via Right-click > New > Python File without additional setup.

Benefits:

  • Streamlines the experience for new Python users, especially those less comfortable with manual registry edits.
  • Aligns with the behavior of other common file types (e.g., text files, Word docs).

Potential Challenges:

  • Ensuring this feature is optional during installation.
  • Supporting user-defined Python file templates, if applicable.

Would this be a viable addition? Thanks for considering!

Has this already been discussed elsewhere?

No response given

Links to previous discussion of this feature:

No response

Linked PRs

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions