simvx.ide.config

Persistent IDE settings stored via the unified AppConfig.

Config exposes flat-name accessors over AppConfig.general and AppConfig.ide sections. All colours come from the AppTheme singleton.

Module Contents

Classes

Config

IDE preferences backed by the unified AppConfig.

Data

log

API

simvx.ide.config.log

‘getLogger(…)’

class simvx.ide.config.Config[source]

IDE preferences backed by the unified AppConfig.

Flat attribute accessors map to AppConfig.general and AppConfig.ide sections. Colours are provided by the AppTheme singleton (see simvx.core.ui.theme).

Initialization

property font_size: int[source]
property window_width: int[source]
property window_height: int[source]
property recent_files: list[str][source]
property recent_folders: list[str][source]
property theme_preset: str[source]
property tab_size: int[source]
property insert_spaces: bool[source]
property show_line_numbers: bool[source]
property show_minimap: bool[source]
property show_code_folding: bool[source]
property show_indent_guides: bool[source]
property auto_save: bool[source]
property format_on_save: bool[source]
property sidebar_width: int[source]
property bottom_panel_height: int[source]
property sidebar_visible: bool[source]
property bottom_panel_visible: bool[source]
property lsp_enabled: bool[source]
property lsp_command: str[source]
property lsp_args: list[str][source]
property lint_enabled: bool[source]
property lint_on_save: bool[source]
property lint_command: str[source]
property format_command: str[source]
property python_path: str[source]
property venv_path: str[source]
property auto_detect_venv: bool[source]
property debug_adapter: str[source]
property keybindings: dict[str, str][source]
load() None[source]
save() None[source]
add_recent_file(path: str) None[source]
add_recent_folder(path: str) None[source]
static detect_venv(project_root: str) str | None[source]

Detect a virtual environment in project_root.

Checks common venv directory names (.venv, venv, .env) for a Python interpreter. Returns the absolute path to the venv directory, or None.

get_python_command(project_root: str) str[source]

Return the Python interpreter path to use for this project.

Priority: explicit python_path setting > auto-detected venv > system python.

get_env(project_root: str) dict[str, str][source]

Build a subprocess environment dict with the detected venv activated.

apply_theme(preset: str)[source]

Apply a theme preset and update the global singleton.

get_theme()[source]

Return an AppTheme matching the current preset and set the global singleton.