Graviton-Code-Editor/Graviton-App

[Suggestion] Adding Some Sort Of Beautifier

ankushom19 opened this issue · 3 comments

The Editor may contain some sort of code formatter in-built or support of some formatter like prettier that may really help

You can format the current file from File > Format Document:

image

Or select the text you want to format and press Shift+Tab.

👍🏻

Besides that, it cool would to "resurrect" https://github.com/Graviton-Code-Editor/Prettier

Or maybe a "Format Documents API", so people can make a eslint plugin, etc. like this:

func Format(input) {
  return "output";
}

TypeScript:

function format(input: String | Buffer): string