1 回答
![?](http://img1.sycdn.imooc.com/545863b500014e4602200220-100-100.jpg)
TA贡献1995条经验 获得超2个赞
您可以使用自定义插件和键绑定来完成此操作。选择Tools → Developer → New Plugin…并设置打开的文件的内容:
import sublime
import sublime_plugin
class ToggleAnacondaLintingCommand(sublime_plugin.ApplicationCommand):
def run(self):
s = sublime.load_settings("Anaconda.sublime-settings")
current = s.get("anaconda_linting")
new = not current
s.set("anaconda_linting", new)
sublime.save_settings("Anaconda.sublime-settings")
sublime.active_window().run_command('save')
点击CtrlS保存,您的Packages/User文件夹应该打开。将文件另存为toggle_anaconda_linting.py.
现在,打开您的按键绑定并在[ ]字符之间添加以下内容(选择您想要的任何快捷方式):
{"keys": ["ctrl+alt+shift+l"], "command": "toggle_anaconda_linting"},
现在,每当您点击快捷方式时,"anaconda_linting"所有文件都会切换。
添加回答
举报