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
)
Currently,
CodeForgeseems 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
tabSizeparameter to theCodeForgewidget constructor or theCodeForgeController.Example: