Edit, Undo and Format Code in UAPP CodeSpace
Work with Monaco editor models, use Undo and Redo and format supported languages while keeping editing separate from saving and runtime validation.
Open an eligible file and edit its text in the central Monaco editor. Each file has its own model, modified state and edit history while it remains open. Verify the breadcrumb before typing.
Editor assistance
CodeSpace enables line numbers, code folding, bracket-pair colors, quick suggestions and suggestions triggered by language characters. These depend on the language services bundled with Monaco; support varies by language and is not equivalent to a configured local IDE or server runtime.
The language comes from the file service's detected file type. The status bar shows it, along with cursor position, indentation, encoding and line endings. These indicators are not dedicated selectors in the current template. Use Problems for diagnostics available to the loaded models.
Undo and Redo
Use Undo to reverse an editor action and Redo to reapply it. Buttons are enabled according to the active model's available history. They affect editor text; they do not restore a disk backup or reverse a file operation in File Studio.
Undoing after a successful save changes the buffer again; save deliberately if you intend that text to replace disk content. Closing a tab disposes its model, so do not rely on its history surviving closure or browser reload.
Format
Click Format to invoke Monaco's document-format action for the active model. A formatter must be available for its language. A Format button enabled for an open file does not guarantee that language has a formatter; unavailable or failed formatting can be reported in Output.
Review the result and use Undo if necessary. Formatting changes the editor buffer and requires an explicit save. It does not run tests, fix application logic or confirm compatibility with the installed server runtime.
Save safely
Stop typing while a save request is in flight, then check its result before continuing. CodeSpace has no autosave, build/run, terminal or dedicated Preview control in the current template. Use the relevant runtime documentation to deploy/test an application, and keep private configuration out of screenshots and shared editor sessions.