Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

x/playground: Inform users of run / format shortcuts #49459

Open
NiloCK opened this issue Nov 8, 2021 · 2 comments
Open

x/playground: Inform users of run / format shortcuts #49459

NiloCK opened this issue Nov 8, 2021 · 2 comments
Labels
NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Milestone

Comments

@NiloCK
Copy link

NiloCK commented Nov 8, 2021

https://tour.golang.org/welcome/1 includes the helpful tips that shift+Enter runs the program, and ctrl+Enter runs the formatter.

These shortcuts exist also at play.golang.org, but are not discoverable.

What version of Go are you using (go version)?

play.golang.org

Does this issue reproduce with the latest release?

not applicable

What operating system and processor architecture are you using (go env)?

not applicable

@gopherbot gopherbot added this to the Unreleased milestone Nov 8, 2021
@cagedmantis cagedmantis added the NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one. label Nov 9, 2021
@cagedmantis
Copy link
Contributor

/cc @toothrot

@Deleplace
Copy link
Contributor

Thank you @NiloCK , I didn't know about Shift+Enter in the Playground to run the code, so I was left puzzled with Ctrl+Enter that would only format it, and I was about to create a bug specifically to ask for a keyboard shortcut for "Run"...

Now I realize that "shift-enter" is in the tooltip of the "Run" button at https://go.dev/play/ (I don't know if it was there all along, or a recent addition).

Yes definitely using the mouse for this, like I did, is suboptimal, and it would be very useful imo to make this information more prominent.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Projects
None yet
Development

No branches or pull requests

4 participants