MCPcopy
hub / github.com/wellsjo/JSON-Splora / format

Method format

app/js/Editor.js:195–200  ·  view source on GitHub ↗

* Formats the code in the editor

()

Source from the content-addressed store, hash-verified

193 */
194
195 format() {
196 if (this.data !== null) {
197 const beautified = beautify(this.editor.getValue(), this.formatOptions)
198 this.editor.setValue(beautified)
199 }
200 }
201
202 /**
203 * Minifies the code in the editor

Callers 3

handleEventsMethod · 0.95
setValueMethod · 0.95
createTemplateMethod · 0.80

Calls 1

setValueMethod · 0.80

Tested by

no test coverage detected