“使用IDLE编辑”上下文菜单中缺少该选项 [英] "Edit with IDLE" option missing from context menu

查看:94
本文介绍了“使用IDLE编辑”上下文菜单中缺少该选项的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有随ArcGIS 10.2.2一起安装的Python 2.7.5。当我第一次右键单击.py脚本时,我先前已经编写了该脚本,并在上下文菜单中列出了使用IDLE编辑选项。但是,当我右键单击.py文件时,此选项不再显示。

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 context menu. However, this option no longer appears when I right-click a .py file.

我已经阅读了许多有关此问题的线程,并尝试了其中的一些线程,例如修改/删除注册表项,然后重新安装/修复软件。目前,我对使用IDE不感兴趣,尽管许多人很高兴知道以后打算使用IDE。现在,我们的目的是解决问题,而不是避免并解决它。

I have read numerous threads concerning this issue and attempted some of them, such as modifying/removing registry keys and then reinstalling/repairing the software. I am not interested in using an IDE at this point, though many will be happy to know I intend to use an IDE later on. Right now, the purpose is to fix the problem rather than avoid and work around it.

我感谢过去从在线社区获得的帮助,并且我相信有人会为我提供解决方案。

I appreciate the help I've gotten from the online community in the past, and I'm confident someone will come through with a solution for me.

如何从上下文菜单中恢复使用IDLE编辑?

How do I get "Edit with IDLE" back in the context menu?

推荐答案

直接来自: https://superuser.com/questions/343519/python-idle-disappeared-from-the-right-click-context-menu

这是一个reg文件,用于添加命令以使用IDLE编辑Python.File(.py)和Python.NoConFile(.pyw)文件类型。适用于安装在C:\Python27中的Python 2.7,因此请替换与您的安装相关的pythonw.exe和idle.pyw路径。将其保存到.reg文件。然后右键单击并选择合并。

Here's a reg file to add the command to edit with IDLE for Python.File (.py) and Python.NoConFile (.pyw) file types. It's for Python 2.7, installed in C:\Python27, so substitute the paths to pythonw.exe and idle.pyw that are relevant to your installation. Save it to a .reg file. Then right-click and choose Merge.

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\Python.File\shell\Edit with IDLE\command]
@="\"C:\\Python27\\pythonw.exe\" \"C:\\Python27\\Lib\\idlelib\\idle.pyw\" -e \"%1\""

[HKEY_CLASSES_ROOT\Python.NoConFile\shell\Edit with IDLE\command]
@="\"C:\\Python27\\pythonw.exe\" \"C:\\Python27\\Lib\\idlelib\\idle.pyw\" -e \"%1\""

这篇关于“使用IDLE编辑”上下文菜单中缺少该选项的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆