一、pythonxy在安装之后向 .py文件的右键菜单添加了 "Edit with IDLE"和"Run in interactive mode"两个条目。对应注册表项有:

\HKEY_CLASSES_ROOT\Python.File\shell\Edit with IDLE\command 值为:
"D:\devenv\Python27\pythonw.exe" "D:\devenv\Python27\Lib\idlelib\idle.pyw" -e "%1"

\HKEY_CLASSES_ROOT\Python.File\shell\Run in interactive mode\command 值为:
"D:\devenv\Python27\python.exe" "-i" "%1" %*

\HKEY_CLASSES_ROOT\Python.File\shell\open\command 值为:
"D:\devenv\Python27\python.exe" "%1" %*

二、安装 Python Tools for VS后,.py文件的右键菜单添加了 "Edit with Visual Studio"。
对应注册表项为:\HKEY_CLASSES_ROOT\py_auto_file\shell\Edit with Visual Studio

因为py_auto_file项的优先级高于Python.File的,所以前面三种打开方式都会消失掉,可以将需要的条目加到py_auto_file分支下。

相关文章:

  • 2021-12-06
  • 2021-08-17
  • 2021-07-11
  • 2022-12-23
  • 2022-12-23
  • 2021-09-06
  • 2021-07-12
  • 2021-06-09
猜你喜欢
  • 2022-02-06
  • 2021-06-08
  • 2021-12-20
  • 2021-06-17
  • 2022-12-23
相关资源
相似解决方案