zoukankan      html  css  js  c++  java
  • Windows下.py文件右键菜单的增删

    一、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分支下。

  • 相关阅读:
    Git引用
    如何查看Git对象
    Git是如何存储对象的
    图形化的Git
    git中找回丢失的对象
    Git的Patch功能
    ES查看配置和查看全部配置
    增删改查
    Elasticsearch增、删、改、查操作深入详解
    ES博客链接
  • 原文地址:https://www.cnblogs.com/shankun/p/python_file_menu_in_windows_explorer.html
Copyright © 2011-2022 走看看