Methods
focus()
Focus the editor
formatCode()
Enhanced formatting
getContent() → {string}
Get editor content
Returns:
- Current editor content
- Type
- string
jumpToLine(lineNumber)
Jump to specific line in editor
Parameters:
| Name | Type | Description |
|---|---|---|
lineNumber |
number | Line number to jump to |
setContent(content)
Set editor content
Parameters:
| Name | Type | Description |
|---|---|---|
content |
string | Content to set |
syncScroll()
Sync gutter scroll with editor
toggleWordWrap()
Toggle word wrap
updateAll()
Update all editor components
updateGutter()
Enhanced gutter line numbers with proper formatting (like VS Code)
updateStatusBar()
Enhanced status bar with cursor position tracking