Class: EditorManager

EditorManager()

Editor Manager - Handles editor functionality like gutter, status bar, formatting

Constructor

new EditorManager()

Source:

Methods

focus()

Focus the editor

Source:

formatCode()

Enhanced formatting

Source:

getContent() → {string}

Get editor content

Source:
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

Source:

setContent(content)

Set editor content

Parameters:
Name Type Description
content string

Content to set

Source:

syncScroll()

Sync gutter scroll with editor

Source:

toggleWordWrap()

Toggle word wrap

Source:

updateAll()

Update all editor components

Source:

updateGutter()

Enhanced gutter line numbers with proper formatting (like VS Code)

Source:

updateStatusBar()

Enhanced status bar with cursor position tracking

Source: