When reinstalling after uninstalling for the purpose of initializing the Python environment The Edit With Idle item disappeared from the right-click menu and I was in trouble. My installation version is 3.9.1, but I have not verified whether the same countermeasure is effective for other versions. It is just a reference measure that it worked in my environment Aside from the details, it's about first aid.
Start the registry editor (regedit.exe) in Ctrl + r or the Windwos administration tool in the start menu. Edit the registry Roughly speaking, I created a key so that it becomes the following tree 「HKEY_CLASSES_ROOT」 ↳「**」 ↳「shell」 ↳「edit with idle」 ↳ "command" (existing) REG_SZ "" (your Python installation path) pythonw.exe "-m idlelib"% L "% *"
The following is an export of the created registry key
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT*\shell\edit with idle\command] @ = "" (your Python installation path) pythonw.exe \ "-m idlelib "% L \ "% *"
In my environment, right-click on the appropriate file immediately after this setting and edit with idle will be displayed. You can now open the right-clicked file with Idl, but it seems like you can open files other than .py files with Idle. Is it safe to open only text files?
Recommended Posts