Allow negative line spacing for the script editor in Editor Settings
This can be used to make text even more compact with certain fonts.
This commit is contained in:
parent
00a0512854
commit
9bbad45045
2 changed files with 2 additions and 2 deletions
|
|
@ -1292,7 +1292,7 @@
|
|||
If [code]true[/code], draws tab characters as chevrons.
|
||||
</member>
|
||||
<member name="text_editor/appearance/whitespace/line_spacing" type="int" setter="" getter="">
|
||||
The space to add between lines (in pixels). Greater line spacing can help improve readability at the cost of displaying fewer lines on screen.
|
||||
The space to add between lines (in pixels). Greater line spacing can help improve readability at the cost of displaying fewer lines on screen. Negative values allow for even more compact text, but may look broken with certain fonts.
|
||||
</member>
|
||||
<member name="text_editor/behavior/documentation/enable_tooltips" type="bool" setter="" getter="">
|
||||
If [code]true[/code], documentation tooltips will appear when hovering over a symbol.
|
||||
|
|
|
|||
|
|
@ -770,7 +770,7 @@ void EditorSettings::_load_defaults(Ref<ConfigFile> p_extra_config) {
|
|||
// Appearance: Whitespace
|
||||
_initial_set("text_editor/appearance/whitespace/draw_tabs", true, true);
|
||||
_initial_set("text_editor/appearance/whitespace/draw_spaces", false, true);
|
||||
EDITOR_SETTING(Variant::INT, PROPERTY_HINT_RANGE, "text_editor/appearance/whitespace/line_spacing", 4, "0,50,1")
|
||||
EDITOR_SETTING(Variant::INT, PROPERTY_HINT_RANGE, "text_editor/appearance/whitespace/line_spacing", 4, "-10,50,1")
|
||||
|
||||
// Behavior
|
||||
// Behavior: General
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue