Skip to content

Instantly share code, notes, and snippets.

@okhlybov
Last active May 11, 2021 09:41
Show Gist options
  • Save okhlybov/10341a89e9b19d5f9b7539c377a7cefa to your computer and use it in GitHub Desktop.
Save okhlybov/10341a89e9b19d5f9b7539c377a7cefa to your computer and use it in GitHub Desktop.
VS Code key bindings
[
{
// Run subsequent tasks for simple task-based projects
"key": "f7",
"when": "!inCMakeProject", // Avoid interference with CMakeTools which defines F7 shortcut of its own
"command": "workbench.action.tasks.reRunTask"
},
{
// Close results panel after project compilation/run in a way similar to Sublime Text
"key": "escape",
"when": "activePanel", // Use esc to close a panel once it is active
"command": "workbench.action.togglePanel"
}
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment