Skip to content

Instantly share code, notes, and snippets.

@mislav
Last active June 18, 2021 12:19
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
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