marijnh/CodeMirror — pull request #1438 by TheColorRed (2013-04-06 20:28:04+00:00)
Title: Auto-Format Code

**Auto-formatting while typing:**
- Automatically adds closing braces, parentheses, square brackets, quote, apostrophe.
- when adding a brace "{" a new line will be added between the two braces and auto indented.
- If the cursor is before to an auto closing character, and the character is typed, it will type over the character.
- If the cursor is between two auto closing characters and the two are empty; pressing backspace will delete both characters.
- Ctrl+Shift+Down Duplicates the current line
- Ctrl+D Deletes the current line
- Ctrl+Up Moves the current line up
- Ctrl+Down Moves the current line down

**Auto-fromatting from menus/buttons/links/etc:**
- Block comment/uncomment
- Pretty Print (formats ugly code, such as JavaScript written on one line)
- Convert to uppercase
- Convert to lowercase
- Remove trailing white spaces