It would be nice to reach convergence among different playgrounds for this specific standard feature, for the same reasons that it's nice to have (often) the same shortcut for Copy & Paste
Suggestion for Go's playground
Add Ctrl-Enter (Linux, Windows) / Cmd-Enter (macOS) as bindings for "Run this code".
This seems to be more widespread and more intuitive than the current binding Shift-Enter.
This can be done while keeping the existing binding Shift-Enter.
This does conflict on Linux with the current binding for "Format this code", so we'd need to decide if changing things for "Format this code" is acceptable damage.
What version of Go are you using (
go version
)?(in the playground actually, not my computer)
Popular playgrounds' key bindings for "Run"
In general
It would be nice to reach convergence among different playgrounds for this specific standard feature, for the same reasons that it's nice to have (often) the same shortcut for Copy & Paste
Suggestion for Go's playground
Add Ctrl-Enter (Linux, Windows) / Cmd-Enter (macOS) as bindings for "Run this code".
This seems to be more widespread and more intuitive than the current binding Shift-Enter.
This can be done while keeping the existing binding Shift-Enter.
This does conflict on Linux with the current binding for "Format this code", so we'd need to decide if changing things for "Format this code" is acceptable damage.