Skip to content

Instantly share code, notes, and snippets.

@mislav
Last active June 18, 2021 12:19
Show Gist options
  • Save mislav/9d28c70af3665928db1046201426d397 to your computer and use it in GitHub Desktop.
Save mislav/9d28c70af3665928db1046201426d397 to your computer and use it in GitHub Desktop.
VS Code keyboard shortcut for quickly re-running the Go test under development. Requires VS Code Go 0.26+
// > Preferences: Open Keyboard Shortuts (JSON)
[
{
"key": "shift+enter",
"command": "go.test.cursorOrPrevious",
"when": "editorTextFocus && editorLangId == 'go' && !findInputFocused && !replaceActive"
},
{
"key": "ctrl+shift+enter",
"command": "go.test.package"
},
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment