鼠标右键添加ipython运行快捷键
目的:
-
在文件上右击可以直接调用ipython进行 debug
-
在文件夹上右击出现ipython 解释器
-
在桌面空白处右击出现ipython 解释器
-
在文件夹空白处右击出现ipython 解释器
一、在文件上出现用ipython debug的快捷键(HKEY_CLASSES_ROOT\*\shell )
1、win+R进入运行终端
2、regedit进入注册表
3、进入HKEY_CLASSES_ROOT\*\shell
4、在shell上点击右键->新建->项,命名为"ipython "
5、将“默认”改成“使用ipython debug”---右键菜单中显示的名字
6、在ipython上点击右键->新建->字符串值,命名为icon(必须这个名,用于获取右键菜单中的图标),双击icon,在数值数据中填入你应用程序的路径
7、在“ipython新建子项“command”
8、右边双击默认,在数值数据中输入C:\Windows\system32\cmd.exe /k python -m ipdb %1保存,关闭注册表。
9、在文件夹上右键会出现命令提示符功能啦!
10、点击之后的就可以用ipython debug了
二、在文件夹上出现用ipython的快捷键(HKEY_CLASSES_ROOT\Folder\shell )
1、win+R进入运行终端
2、regedit进入注册表
3、进入HKEY_CLASSES_ROOT\Folder\shell
4、找到shell,右键新建子项命名“ipython”
5、将“默认”改成“运行ipython”---右键菜单中显示的名字
6、在ipython上点击右键->新建->字符串值,命名为icon(必须这个名,用于获取右键菜单中的图标),双击icon,在数值数据中填入你应用程序的路径
7、在“ipython新建子项“command”
8、右边双击默认,在数值数据中输入C:\Windows\system32\cmd.exe /k ipython 保存,关闭注册表。
三、在桌面空白处上出现ipython的快捷键(HKEY_CLASSES_ROOT\DesktopBackground\shell )
桌面空白处上出现类似,只是注册表位置在DesktopBackground,按照上述步骤操作既可。
四、在文件夹空白处上出现ipython的快捷键(HKEY_CLASSES_ROOT\Directory\Background\shell)
方法同上
五、脚本运行
创建一个reg文件,文件名自取,如"鼠标右键添加ipython.reg",双击后既可添加右键菜单快捷键ipython。
内容如下:
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\*\shell\python]
"icon"="C:\\Windows\\System32\\cmd.exe"
[HKEY_CLASSES_ROOT\*\shell\python\command]
@="C:\\Windows\\System32\\cmd.exe /k python %1"
[HKEY_CLASSES_ROOT\*\shell\ipython] "icon"="C:\\Windows\\System32\\cmd.exe" [HKEY_CLASSES_ROOT\*\shell\ipython\command] @="C:\\Windows\\System32\\cmd.exe /k python -m ipdb %1" [HKEY_CLASSES_ROOT\Folder\shell\ipython] "icon"="C:\\Windows\\System32\\cmd.exe" [HKEY_CLASSES_ROOT\Folder\shell\ipython\command] @="C:\\Windows\\System32\\cmd.exe /k ipython" [HKEY_CLASSES_ROOT\DesktopBackground\shell\ipython] "icon"="C:\\Windows\\System32\\cmd.exe" [HKEY_CLASSES_ROOT\DesktopBackground\shell\ipython\command] @="C:\\Windows\\System32\\cmd.exe /k ipython" [HKEY_CLASSES_ROOT\Directory\Background\shell\ipython] "icon"="C:\\Windows\\System32\\cmd.exe" [HKEY_CLASSES_ROOT\Directory\Background\shell\ipython\command] @="C:\\Windows\\System32\\cmd.exe /k ipython"

浙公网安备 33010602011771号