I upgraded to the latest version of ST2 and was pleased to find that build variants were now built in. I had been using the MultiTaskBuild package, which worked very well until the new update. I have converted my build system to the new format as shown below.
My problem is that I cannot access the build variant list as described by the documentation (http://docs.sublimetext.info/en/latest/reference/build_systems.html#variants).
I believe the culprit is the default keymapping for OSX which appears to attempt to run the build variant “run” instead of showing the list of build variants like the documentation says it should:
{ "keys": "super+shift+b"], "command": "build", "args": {"variant": "Run"} },
With the MultiTaskBuild package, the “CMD+B” would show a list of variants to choose from. How can I make the new build system setup in Sublime do the same?
{
"file_regex": "^(..^:]*):([0-9]+):?([0-9]+)?:? (.*)$",
"working_dir": "${file_path}/../",
"selector": "source.c",
"cmd": "make", "${file_base_name}"],
"variants":
{
"cmd": "make", "clean"],
"name": "Clean"
},
{
"cmd": "make", "load"],
"name": "Load"
}
]
}