gpt4 book ai didi

sublimetext2 - Sublime Build变体热键

转载 作者:行者123 更新时间:2023-12-03 13:36:58 25 4
gpt4 key购买 nike

我正在运行一个 Sublime 的构建系统来构建我的代码。

我有4个构建系统变体,我想将第一个变体映射到热键。

现在,我将命令“Build”映射到F5。但是当我点击它时,它说...

shell_cmd or cmd is required [cmd: None]



有没有一种方法可以将特定的构建系统变体映射到热键?

这是我的构建系统
{

"variants": [

{
"name" : "ndk-build",
"file_regex": "^(..[^:]*):([0-9]+):?([0-9]+)?:? (.*)$",
"cmd": ["H:/Tools/SublimeBuild/sublime-ndk-build.bat"],
"working_dir": "${project_path:${folder}}",
},

{
"name" : "ant-clean",
"cmd": ["H:/Tools/SublimeBuild/sublime-ant.bat" , "clean"],
"working_dir": "${project_path:${folder}}",
},

{
"name" : "ant-install",
"cmd": ["H:/Tools/SublimeBuild/sublime-ant.bat" , "debug" , "install"],
"working_dir": "${project_path:${folder}}",
},

{
"name" : "Release",
"cmd": ["H:/Tools/Release.bat"],
"working_dir": "${project_path:${folder}}/../build",
}
]

}

最佳答案

只需添加到您的键盘映射中:

{ "keys": ["ctrl+f5"], "command": "build", "args": { "variant": "ndk-build" } },

除了:您可以在顶层添加命令作为默认命令,并且仍然保留变体。

关于sublimetext2 - Sublime Build变体热键,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37418780/

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