gpt4 book ai didi

sublimetext2 - 在Sublime Text 3中,如何像Sublime Text 2中一样分别设置 "Build and Run"和 "Build only"的快捷方式?

转载 作者:行者123 更新时间:2023-12-04 04:20:55 25 4
gpt4 key购买 nike

在Sublime Text 3中,当我们按Ctrl + Shift + B组合键时,可以选择执行“构建并运行”或“仅构建”,而Ctrl + B执行这两者之间的先前选择的操作。但是我希望它像这样,它应该在按Ctrl + Shift + B时​​直接构建并运行,并且仅当像在Sublime Text 2中那样按Ctrl + B时​​才构建。有人可以帮帮我吗?

最佳答案

将其添加到您的sublime-keymap应该会导致预期的行为:

{ "keys": ["ctrl+b"], "command": "build", "args": { "variant": "" } },
{ "keys": ["ctrl+shift+b"], "command": "build", "args": { "variant": "Run" } },

但是,您可能需要重新映射,将选项列表保留为alt + b:
{ "keys": ["alt+b"], "command": "build", "args": { "select": true } },

关于sublimetext2 - 在Sublime Text 3中,如何像Sublime Text 2中一样分别设置 "Build and Run"和 "Build only"的快捷方式?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35455988/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com