Skip to Content
WorkspaceCode Editor

Code Editor

The code editor is the heart of Blueberry, combining built-in language support, smart git awareness, and specialized viewers.

Multi-Language Syntax Highlighting

Blueberry supports 30+ programming languages out of the box:

Web Technologies: JavaScript, TypeScript, JSX/TSX, HTML, CSS, SCSS, Less, JSON, YAML, XML

Server Languages: Python, Go, Rust, Java, C#, C++, Ruby, PHP, Swift, Kotlin

Data & Config: SQL, GraphQL, Markdown, Shell, Dockerfile, TOML

Each language includes:

  • Automatic language detection from file extension
  • Syntax coloring with semantic token support
  • Bracket matching and auto-closing
  • Code folding for large files

Language Server Protocol (LSP)

Blueberry integrates with Language Server Protocol for intelligent code understanding:

Autocomplete (Cmd+Space)

  • Context-aware suggestions based on file type
  • Automatic completion for imports and variables
  • Snippet insertion with field navigation

Hover Information

  • Type information for variables and functions
  • Inline documentation from source
  • Parameter hints

Go to Definition (Cmd+Click)

  • Navigate to function/class definitions
  • Automatically opens file in new tab
  • Preserves editor scroll position

Supported Languages: JavaScript, TypeScript, Python, Go, Rust (with language server installed)

Real-Time Git Gutter

The editor’s left margin shows live git status:

IndicatorMeaning
🟢 GreenNew lines added
🔵 BlueModified lines
🔴 Red dotDeleted lines

Features:

  • Hover over changed line for original content
  • Uses LCS diff algorithm for precision
  • Updates instantly as you edit

Side-by-Side Diff Viewer

View original vs. current file content in the Source Control panel:

  • Line numbers with diff indicators
  • Syntax coloring in both panes
  • Scroll sync between panes
  • Full-screen diff view for detailed review

Image Viewer

Open images directly in the editor:

Zoom Levels: 10%, 25%, 50%, 75%, 100%, 150%, 200%, 300%, 400%

Shortcuts:

  • + Zoom in
  • - Zoom out
  • F Toggle fit mode

Supported formats: PNG, JPG, GIF, WebP, SVG

Editor Settings

Customize from Settings → General:

  • Font size (8px - 20px, default: 14px)
  • Font family
  • Theme
  • Word wrap toggle
  • Minimap toggle

Keyboard Shortcuts

ActionShortcut
SaveCmd+S
FindCmd+F
Global searchCmd+Shift+F
Quick file searchCmd+P
New fileCmd+N
Close tabCmd+W
Undo/RedoCmd+Z / Cmd+Shift+Z
Last updated on