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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user