Khan / Khan/live-editor

"Format" button to correct indentation

Open
#182 9 comments 1 reaction 0 assignees View on GitHub
editor idea pjs
Dominant language
JavaScript
Stars
776
Forks
180
PR merge metrics
No merged PRs in 30d

Description

I was answering some programming questions on KA and some of the students have really poor formatting. It would be nice if there was a button they could hit to correct the formatting. Here are some examples:

![screen shot 2014-10-17 at 10 05 33 pm](https://cloud.githubusercontent.com/assets/1044413/4688495/6a643fe8-567c-11e4-8010-03577974254b.png)

![screen shot 2014-10-17 at 10 05 18 pm](https://cloud.githubusercontent.com/assets/1044413/4688494/694b7860-567c-11e4-9023-6ec2c64440ca.png)

Contributor guide

No contributing guide indexed for this repository

Research direction

The issue provides screenshots but names no files, tests, or entry points. Start by locating the editor UI and any existing indentation or formatting logic, then determine how a button would invoke it. Done means a user can trigger formatting and see poorly indented code corrected consistently.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
28/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.