Tools->New plugin
粘贴下面代码,在插件目录新建文件夹,保存
import sublime, sublime_plugin import os class ExampleCommand(sublime_plugin.TextCommand): def run(self, edit): os.system('python.exe ' + self.view.file_name() + ' & PAUSE & EXIT')
新建文件Default (Windows).sublime-keymap粘贴下面代码,保存
[ { "keys": ["f5"], "command": "example" } ]
图片压缩文件,解压后放到插件文件夹