美文网首页
sublime3安装python函数追踪插件

sublime3安装python函数追踪插件

作者: 鱼豆腐爱好者协会会长 | 来源:发表于2020-02-21 23:36 被阅读0次

    1.打开Package Control[Preferences>>Package Control]

    2.输入 install 选择关联出来的install package

    3.输入sublimecodeintel,然后选中安装

    4.安装完成之后可以通过【Preferences>>Package Settings】中查看到已安装的插件

    5.点击preferences中的browse Packages,进入到SublimeCodeIntel,在当前的路径下新建.codeintel文件夹(windows中文件命名的时候为 .codeintel. ),之后进入到 .codeintel文件夹中,新建文件“config.log”,配置文件中输入(下文以路径“E:/Program Files/python34/”为例,实际配置时请根据具体安装路径修改):

    "python3":{     

        "python":"E:/Program Files/python34/python.exe",     

        "pythonExtraPaths":[         

            "E:/Program Files/python34/DLLs",         

            "E:/Program Files/python34/Lib",        

            "E:/Program Files/python34/Lib/lib-tk",         

            "E:/Program Files/python34/Lib/site-packages",     

            ]

        }

    配置快捷键使其同eclipse,实现ctrl+鼠标左键追踪函数,alt+left/right跳转,alt+/自动提示代码

    选择 Perference-package Settings-SublimeCodeIntel-Key Bindings-User

    //自动提示代码

    { "keys": ["alt+/"], "command": "code_intel_auto_complete" },

    //跳转到函数定义

    { "keys": ["alt+right"], "command": "goto_python_definition"},

    //返回到跳转位置

    { "keys": ["alt+left"], "command": "back_to_python_definition"} 

    选择 Perference-package Settings-SublimeCodeIntel-Mouse Bindings - User

    [       

    //ctrl+鼠标左键跳转函数       

    { "button": "button1", "modifiers": ["ctrl"], "command": "goto_python_definition", "press_command": "drag_select" }

    ]

    相关文章

      网友评论

          本文标题:sublime3安装python函数追踪插件

          本文链接:https://www.haomeiwen.com/subject/uvkkqhtx.html