File Editor
Fluidd includes a built-in code editor powered by Monaco (the engine behind VS Code) for editing Klipper configuration files, G-code, and other files directly from your browser.
Syntax highlighting
Rich, TextMate grammar-based syntax highlighting is provided for the following file types:
| File Type | Highlighted Elements |
|---|---|
Klipper config (.cfg, .conf) |
Section headers, keys and values, pin references, sensor and thermistor types, driver types, serial paths, booleans, numbers, and embedded G-code within macros including Jinja2 template blocks |
G-code (.gcode, .g, .gc, .gco, .ufp, .nc) |
G/M/T commands, coordinates, feed rates, tool and offset registers, math functions, macro variables, and control keywords |
Log files (.log) |
Log-level colorization (debug, info, warning, error, critical), timestamps, URLs, UUIDs, git SHAs, exception names, and stack traces |
| JSON | Full validation and IntelliSense via a dedicated language worker |
| CSS, SCSS, Less | Property completion, hover, and validation via a dedicated language worker |
| Markdown | Basic syntax highlighting |
Documentation links
When editing Klipper config files, clickable CodeLens links appear above
each [section] header — linking directly to the relevant documentation page
for:
The correct documentation source is detected automatically based on the file being edited. This feature can be disabled in the editor settings.
Outline and navigation
Klipper config files provide a two-level document outline:
- Sections — each
[section_name]block - Properties — each
key: valueorkey = valuewithin a section
Use Ctrl+Shift+O (or Cmd+Shift+O on macOS) to jump to any section or property, or browse the outline panel.
Code folding
Collapsible regions are supported for both Klipper config and G-code files.
Klipper config:
- Section blocks — collapse an entire
[section]and its contents - Comment blocks — consecutive comment lines fold together
- Named regions —
#region/#endregionmarkers for custom foldable areas
G-code:
- Print layers — each
SET_PRINT_STATS_INFO ... CURRENT_LAYER=Nstarts a foldable layer block - Exclude objects —
EXCLUDE_OBJECT_START/EXCLUDE_OBJECT_ENDpairs - Thumbnail blocks —
; thumbnail begin/; thumbnail endcomment sections - Comment blocks — consecutive
;comment lines fold together
Keyboard shortcuts
| Action | Shortcut |
|---|---|
| Save | Ctrl+S / Cmd+S |
| Save As | Ctrl+Shift+S / Cmd+Shift+S |
| Save and Restart | Ctrl+Alt+S / Cmd+Alt+S |
| Emergency Stop | Ctrl+Shift+E / Cmd+Shift+E |
| Go to Line | Ctrl+G |
| Go to Symbol | Ctrl+Shift+O / Cmd+Shift+O |
| Command Palette | F1 |
All actions are also accessible from the Command Palette. For application-wide shortcuts and navigation hotkeys, see Keyboard Shortcuts.
View state persistence
The editor remembers your scroll position, cursor location, and folding state for each file. This can be configured in the editor settings:
- Local storage — persists across browser restarts
- Session storage — persists within the current browser session
- Off — no persistence