Skip to content

✨ Auto-indent New Lines #78

@austincondiff

Description

@austincondiff

When the user presses return to create a new line, we should auto-indent the new line for them.

The amount of indentation to give the new line will be based on the previous line's indentation, or if the previous line ends in a {, [, (, or <, increase the indent.

If there is a matching }, ], ), or >, we need to add it to a new line underneath the new line and indent it the same amount of indentation as the original line the user was on before they created the new line.

Screen.Recording.2022-10-06.at.4.16.58.PM.mp4

Related

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

Status

🏁 Complete

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions