在sublime中实现shell编辑插件代码



插件
import urllib.request,os; pf = 'Package Control.sublime-package'; ipp = sublime.installed_packages_path(); urllib.request.install_opener( urllib.request.build_opener( urllib.request.ProxyHandler()) ); open(os.path.join(ipp, pf), 'wb').write(urllib.request.urlopen( 'http://sublime.wbond.net/' + pf.replace(' ','%20')).read())


快捷键
{"keys": ["f5"], "command": "run_existing_window_command", "args":
        {"id": "repl_python_run",
         "file": "config/Python/Main.sublime-menu"
        }
    }
,
 {"keys":["f3"],
 "caption": "SublimeREPL: Python",
 "command": "run_existing_window_command", "args":
 {"id": "repl_python",
 "file": "config/Python/Main.sublime-menu"
 }
 }

你可能感兴趣的:(python)