Skip to content

Instantly share code, notes, and snippets.

@Star-Lord-XIII
Last active August 29, 2015 14:18
Show Gist options
  • Save Star-Lord-XIII/2d96d9a349b2eb94c373 to your computer and use it in GitHub Desktop.
Save Star-Lord-XIII/2d96d9a349b2eb94c373 to your computer and use it in GitHub Desktop.
Restore old shortcuts for Single source files in Sublime Text 3 (cmd + b -> compile , cmd + shift + b -> run)
[
{
"keys": ["super+b"],
"command": "build",
"context": [
{ "key": "selector", "operator": "equal", "operand": "source.c++" }
],
"args": {
"build_system": "Packages/C++/C++.sublime-build",
"variant": "Build"
}
},
{
"keys": ["super+shift+b"],
"command": "build",
"context": [
{ "key": "selector", "operator": "equal", "operand": "source.c++" }
],
"args": {
"build_system": "Packages/C++/C++.sublime-build",
"variant": "Run"
}
},
{
"keys": ["super+b"],
"command": "build",
"context": [
{ "key": "selector", "operator": "equal", "operand": "source.java" }
],
"args": {
"build_system": "Packages/Java/Java.sublime-build",
"variant": "Build"
}
},
{
"keys": ["super+shift+b"],
"command": "build",
"context": [
{ "key": "selector", "operator": "equal", "operand": "source.java" }
],
"args": {
"build_system": "Packages/Java/Java.sublime-build",
"variant": "Run"
}
}
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment