CodeForgeFeatures class
All the bool flags/attributes that can change the CodeForge behaviour are organized into this single class.
override the codeForgeFeatures parameter in the CodeForge class to toggle/override feature flags.
/// ```dart
CodeForge(
codeForgeFeatures: CodeForgeFeatures(
// Your overrides
)
)
Constructors
- CodeForgeFeatures({bool readOnly = false, bool autoFocus = false, bool lineWrap = false, bool enableMinimap = true, bool enableFolding = true, bool enableGuideLines = true, bool enableBracketPairMatching = true, bool enableLocalSuggestions = false, bool enableKeyboardSuggestions = true, bool useSpaceAsTab = false, bool enableGutter = true, bool enableGutterDivider = false, bool deleteFoldRangeOnDeletingFirstLine = false})
-
const
Properties
- autoFocus → bool
-
Whether to automatically focus the editor when mounted.
final
- deleteFoldRangeOnDeletingFirstLine → bool
-
If set to true, deleting the first line of a folded block will delete the entire folded region,
else only the first line gets deleted and the rest of the block stays safe.
Defauts to false.
final
- enableBracketPairMatching → bool
-
Whether to highlight matching brackets on placing cursor on one of them.
final
- enableFolding → bool
-
Whether to enable code folding functionality.
final
- enableGuideLines → bool
-
Whether to show indentation guide lines.
final
- enableGutter → bool
-
Whether to show the gutter with line numbers.
final
- enableGutterDivider → bool
-
Whether to show a divider line between gutter and content.
final
- enableKeyboardSuggestions → bool
-
Whether to show auto completions in the OS virtual keyboard.
final
- enableLocalSuggestions → bool
-
Whether to enable local and non LSP autocomplete suggestions.
To control LSP suggestions, use the
capabilitiesfield of the LspConfig.falseby default because, this may cause delay or jitter in large files.final - enableMinimap → bool
-
Whether to enable the VSCode like minimap on the editor,
which mirrors editor operations.
final - hashCode → int
-
The hash code for this object.
no setterinherited
- lineWrap → bool
-
Whether to wrap long lines.
final
- readOnly → bool
-
Whether the editor is in read-only mode.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- useSpaceAsTab → bool
-
Use space instead of the
\tcharacter for tab key press.final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited