“Edit with IDLE” option missing from context menu

前端 未结 11 2004
盖世英雄少女心
盖世英雄少女心 2020-12-09 10:46

I have Python 2.7.5 that installed with ArcGIS 10.2.2. When I first right-clicked a .py script I\'d previously written it listed the \"Edit with IDLE\" option in the contex

11条回答
  •  轮回少年
    2020-12-09 10:52

    Most of the time when this problem occurs, people will read answers directing them into the windows registry, often unnecessarily.

    In the majority of cases, the registry key

    HKEY_CLASSES_ROOT\Python.File\shell\Edit with IDLE\command
    

    will already exist and have the correct value, but it will only be used by Windows shell context menu if .py files are set by default to open with python.exe.

    This is the first thing to check, and solves the problem in the majority of cases:

    • right click on a .py file
    • open with...
    • choose default program...
    • tick always use the selected program to open this kind of file
    • choose python.exe

    This runs the script in a terminal, but also sets the filetype back to python.

    Now check the right click menu again.

提交回复
热议问题