First aid when EditWithIdle disappears from the Windwos Python right-click menu

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 \ "% *"

  1. Add edit with idle (you can rewrite it arbitrarily) to HKEY_CLASSES_ROOT \ * \ shell with the new> key in the right-click menu.
  2. Add a key to edit with idle and rename it to command
  3. Right-click (default) of command and select Modify, and OK with the path of pythonw.exe and -m idlelib \ "% L "% * "as arguments to the data value of the displayed small window. Press to complete

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

First aid when EditWithIdle disappears from the Windwos Python right-click menu
The first step to getting Blender available from Python
Check the behavior when assigning Python
Existence from the viewpoint of Python
Python (from first time to execution)
Use the Flickr API from Python
See python for the first time
When the node disappears in rqt_graph
The first step in Python Matplotlib
A useful note when using Python for the first time in a while