1 回答

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"所有文件都會切換。
添加回答
舉報