Skip to content

Add a “Beautify” button for users on iPad (which has no ctrl/cmmd key) #2381

Closed
@arrowtype

Description

@arrowtype

Is your feature request related to a problem? Please describe.

This year, a lot of students are using iPads to learn from home. This means that many of them are missing a separate keyboard, so we can no longer rely on hotkey combos for actions like "format/beautify code". From a recent Code Nation slack post:

Hey All! Curious if there is a way to format code in code in Popcode without using Mac/PC keystrokes (for iPad users)

Answer: not without an external keyboard. Easy to recommend, but unrealistic to expect in all cases.

Describe the solution you'd like

A button should exist for "Beautify Code", possibly in the header or possibly next to the HTML/CSS/JS section toggles.

Ideas on visual presentation:

  • A button or link next to the magnifying glass
  • A wand icon, similar to the "auto" button in photo editors like iOS Photos or Snapseed

Describe alternatives you've considered

Sadly, there appear to be no alternatives. Apple has a page saying that shortcuts are only available on external keyboards. Thanks, Apple 🙃

https://support.apple.com/en-us/HT211096

Additional context
Add any other context or screenshots about the feature request here.

This formatting function seems to have been added at #1615.

I'm not sure if there is an active maintainer who could make this quickly. It would probably take me an unreasonably long time to add it, but I'd be happy to find or make a wand icon if that visual solution is a route we'd like to pursue.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions