SqlOtter

Set up your daily desktop preferences / Settings pages

Theme Settings: SQL font, syntax and formatter

Preview SQL editor fonts, syntax styles, caret, line height and formatter choices.

Where to open it

Settings → SQL Editor → Theme Settings.

Save controls

Use the named controls; focus and entry scope determine the effect.

Save controls
ActionWindows / LinuxmacOSEffect
Apply / OKApply / OKApply / OKSave ordinary page edits; see immediate actions below.
Cancel / EscCancel / EscCancel / EscClose; does not undo earlier Apply or independently saved operations.

Before you start

Inspect your current values first. These are current-source defaults, not a reset of your saved configuration or values inferred from a screenshot.

Follow these steps

  1. Select the current theme and use Theme Preview. With no customization the theme manager follows the app’s light/dark theme; explicitly choosing/customizing a theme stops automatic following when saved.
  2. SQL Editor Font selects the code font. Default built-in themes use the system-font policy; an unset font is platform-dependent, not a universal named font. Current line border and the line-number-area vertical line change editor decoration (vertical line defaults on).
  3. Line height defaults Auto (0); fixed heights accept up to 200 px. Cursor style defaults line, with block, underline, line-thin, block-outline and underline-thin alternatives; the animated sample previews the shape.
  4. Syntax Highlighting edits color and bold/italic/underline for keywords, functions, strings, comments, numbers, default text, brackets, backticks and search matches; search matches also have a background color. Colors come from the selected light/dark/custom theme, not one global palette.
  5. Formatter indent defaults 4 (range 2–8); Normalize function offers lower/upper, default upper. These alter formatting output, not dialect validation or database identifier policy.
  6. Choose the intended value, then use Apply to save and stay open or OK to save and close after success. Cancel discards only changes not already saved.

Read the Theme Settings screenshot

This independent complete Settings image shows the theme controls and their captured selections. Read it alongside the source-reviewed defaults and save rules above; the block caret choice differs from the source default line.

Complete Theme Settings window with cursor style search at 1/1, block cursor, system monospaced 13pt font, syntax color rows, Default dark theme, SQL preview and bottom Settings controls.
Theme Settings is selected; cursor style is block, the Settings search is cursor style (1/1), and Current theme is Default dark theme. These are captured choices; source defaults and save behavior are documented separately. The SQL preview does not establish execution. Database icons were updated to the current two-letter marks. Historical screenshot; UI icons have been updated.
  1. Locate the page: Theme Settings is blue-selected under SQL Editor; the SQL Editor parent and Auto Completed sibling are not selected. The right side shows Basic Settings, Syntax Highlighting, Theme Management and Theme Preview together.
  2. The top-right Settings search contains cursor style and shows 1/1, with a clear control and up/down navigation buttons. Cursor style has a red search outline. This Settings-wide search is separate from the Search matches syntax colors below and from the blue outline on Default text.
  3. SQL Editor Font has a Select Font button and reads System default (monospaced), 13pt. Line height reads Auto. These are this image’s displayed font policy, size and line-height choice; no font picker is open, and 13pt is not a universal platform default.
  4. Cursor style reads block, with a small SqlOtter caret sample beside it. The image captures one frame of that sample; it does not demonstrate animation or an open editor’s saved caret. Source review separately records line as the default, so the captured block selection must not be relabeled as the default.
  5. SQL formatter: Indent size reads 4 spaces, and SQL formatter: Normalize function reads upper. Both dropdown/spin controls are visible; no alternatives are expanded and no formatting command or output comparison is shown.
  6. Current line border displays #282828 beside its color control. Draw vertical line in the line number area is checked. The lower preview shows line numbers and a current-line decoration; the image does not verify that other editors have refreshed.
  7. In Syntax Highlighting, Keywords and Functions both show #6496fa and have Bold checked. Strings shows #CE9178 and Comments shows #6A9955; their Bold boxes are unchecked. All four rows show unchecked Italic and Underline boxes.
  8. Numbers shows #50c8dc, Brackets #c878dc and Backtick #D7BA7D. Default text is present with a blue row outline; its color-field text has low contrast, so no exact captured value is transcribed from it. These four rows have Bold, Italic and Underline unchecked. Source review associates the blue row marker with the preview caret’s syntax category; it is distinct from the red Settings search marker.
  9. Search matches shows foreground #FFFF00 and BG #FFA500, with Bold, Italic and Underline unchecked. This row configures editor search-match styling; it is not the query field for the Settings-wide cursor style search.
  10. Theme Management shows Current theme: Default dark theme and New Theme, Save Theme, Delete Theme, Export Theme, Import Theme and Reset Theme. Delete Theme is visibly greyed out. The source-reviewed sections separately explain built-in deletion restrictions and direct theme-library writes; this still shows no completed theme action.
  11. Theme Preview contains sample SQL with line numbers, green comments, a backtick-identifier SELECT and an indented SELECT with COUNT(orders.id). A block caret/current-line area is visible on the blank fourth line. More sample text continues below the preview viewport; hidden text is not reconstructed. All settings controls fit in the full frame, so no additional scrolled image is needed to explain them. This preview is not a query result or evidence of SQL execution.
  12. Export Settings... and Import Settings... appear at bottom left, separate from Export Theme / Import Theme. Apply, Cancel and OK appear at bottom right. Source-reviewed save scopes and immediate-action exceptions remain separate from this captured state; no pressed button, saved preference, file operation or editor refresh is established.
  • The faint Default text color field is preserved without repainting or replacing text; the separate built-in palette table is source evidence, not a transcription of that faint field. Matching other captured values to defaults does not establish a clean profile or saved configuration. Capture time, exact OS/display scale, application build and active engine/server are unrecorded. This image adds no workflow or release acceptance.

Built-in theme colors

Source defaults for dark_default and light_default; color values are editable per theme.

Built-in theme colors
ControlDark defaultLight default
Current line border#282828#d0d7de
Keywords#6496fa#0550AE
Functions#6496fa#8250DF
Strings#CE9178#0A3069
Comments#6A9955#6E7781
Numbers#50c8dc#0550AE
Default text#D4D4D4#24292F
Brackets#c878dc#953800
Backticks#D7BA7D#116329
Search matches#FFFF00 / background #FFA500#24292F / background #FFF8C5

What to expect

You can distinguish the saved local preference from the view or later operation that consumes it.

Scope and limits

  • Apply/OK saves cursor style, selected theme and configuration, then requests an editor update through the owning workspace. Inspect actual editors; reopen a stale instance. The preview is not SQL execution.
  • Save Theme, New Theme, Import Theme, Delete Theme and Reset Theme directly write the theme library; Export writes a file. Reset also requests editor refresh. Outer Cancel cannot undo those library changes. Built-in themes cannot be deleted.
  • Example: create a separately named theme before trying a larger font or fixed line height if you need to retain the old configuration.
  • Ordinary preferences are shared on this device; they are not per-workspace isolation or automatic team/device synchronization. Apply saves allowed instantiated pages sequentially and can leave partial saves on error.
  • Built-in keywords and functions default bold; the other syntax rows default normal. All syntax rows default italic off and underline off. The table below lists the actual built-in palette; saved custom themes can differ.