Skip to content

[Feature Request] Customizable tabSize for indentation #64

@iskepr

Description

@iskepr

Currently, CodeForge seems to have a fixed indentation size (hardcoded to 2 spaces) when handling auto-indentation (e.g., after a newline with :) or when using indentation methods.

In many programming languages and developer workflows, a 4-space indentation is the standard. Providing a way to customize this value would greatly improve the flexibility of the editor for different languages.

Proposed Solution:

Add a tabSize parameter to the CodeForge widget constructor or the CodeForgeController.

Example:

CodeForge(
  controller: controller,
  tabSize: 4, // Allow users to define the number of spaces
  // ... other properties
)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions