Skip to content

Instantly share code, notes, and snippets.

@USLTD
Created May 19, 2021 09:28
Show Gist options
  • Save USLTD/4594a1753eb0936dac9876d3402c7119 to your computer and use it in GitHub Desktop.
Save USLTD/4594a1753eb0936dac9876d3402c7119 to your computer and use it in GitHub Desktop.
Fixs "Edit with IDLE 3.9 (64-bit)" not available in context menu on Windows
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\SystemFileAssociations\.py]
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\SystemFileAssociations\.py\shell]
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\SystemFileAssociations\.py\shell\editwithidle]
"MUIVerb"="&Edit with IDLE"
"Subcommands"=""
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\SystemFileAssociations\.py\shell\editwithidle\shell]
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\SystemFileAssociations\.py\shell\editwithidle\shell\edit39]
"MUIVerb"="Edit with IDLE 3.9 (64-bit)"
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\SystemFileAssociations\.py\shell\editwithidle\shell\edit39\command]
@="\"C:\\Python39\\pythonw.exe\" -m idlelib \"%1\" %*"
@USLTD
Copy link
Author

USLTD commented May 19, 2021

REMEMBER!
This is for Python 3.9 (64-bit) on Windows
If you want to fix same problem for another version, change 14th and 17th lines with following

  1. 14th line - "MUIVerb"="Edit with IDLE <Your Python version> (<Python type (64 or 32)>-bit)"
  2. 17th line - @="\"<pythonw.exe path>\" -m idlelib \"%1\" %*"

and in 13th and 16th lines edit39 with following:

  • edit<major version of your python without dot in middle like for |3.5|==>|35|>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment