Skip to main content

Editor & Language Support — Specifications

This page contains the formal feature specifications for the TrinovaQ Studio code editor and language support subsystem. For usage instructions and examples, see Code Editor.


Overview

The editor provides an industry-standard code editing experience for C and Rust development, with extensions for automotive embedded software workflows. It supports automatic language detection, a curated snippet library, and seamless integration with the static analysis and build pipeline.


Feature Specifications

IDFeatureDescription
TRQ-EDT-001Automatic Language DetectionThe editor automatically identifies whether the active file is C or Rust, and applies the appropriate syntax highlighting, analysis, and compilation pathway. Detection is based on file extension and code content analysis.
TRQ-EDT-002Keyboard ShortcutsCore build and analysis actions are accessible via standard keyboard shortcuts: Ctrl+B (Compile), Ctrl+Shift+I (Scan Quality), Ctrl+S (Save), Ctrl+O (Open), Ctrl+Q (Toggle Line Comment).
TRQ-EDT-003Monaco Editor IntegrationThe editor is built on a professional-grade editor engine, supporting syntax highlighting, code folding, bracket matching, find/replace, minimap, and IntelliSense-style auto-completion for C, C++, and JSON.
TRQ-EDT-004Multi-Tab ManagementMultiple source files can be open simultaneously as editor tabs. Each tab shows unsaved-change indicators. The editor warns before closing unsaved files.
TRQ-EDT-005ThemingThe editor applies the active application theme (dark or light), with consistent styling across all UI elements.
TRQ-EDT-006Auto-SaveThe editor can automatically save files after a configurable idle period, configurable per project.

Automotive Snippets Library

The editor includes a curated snippet library for automotive embedded development patterns. Snippets are accessed by typing the trigger word and pressing Tab.

IDTriggerGenerated PatternPurpose
TRQ-SNP-001header_guard#ifndef / #define / #endif blockPrevents recursive header inclusion
TRQ-SNP-002for_safeBounds-checked for loopDefensive loop with explicit guard condition
TRQ-SNP-003fsm_secureFSM enum and switch skeleton with defensive defaultSecure Finite State Machine implementation template

Language Support Matrix

FeatureCRust
Syntax highlighting
Auto-completion
Code folding
Static analysis✓ (MISRA C:2012)✓ (rustc diagnostics)
Compilation✓ (GCC)✓ (rustc)
Snippet library
Automotive snippets

Non-Functional Requirements

IDRequirement
TRQ-EDT-NF-001The editor must handle files up to 10,000 lines without degradation of responsiveness
TRQ-EDT-NF-002Syntax highlighting must apply within 500 ms of file opening
TRQ-EDT-NF-003The editor undo/redo stack must not be invalidated by applied code fixes