From db353a06e56fe992102eccc82721a7ddce4a9455 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Sat, 26 Oct 2019 11:33:39 +0200 Subject: [PATCH] HackStudio: Enable line wrapping and automatic indentation by default --- DevTools/HackStudio/main.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/DevTools/HackStudio/main.cpp b/DevTools/HackStudio/main.cpp index d3076de284..3c304e17a7 100644 --- a/DevTools/HackStudio/main.cpp +++ b/DevTools/HackStudio/main.cpp @@ -73,6 +73,8 @@ int main(int argc, char** argv) auto inner_splitter = GSplitter::construct(Orientation::Vertical, outer_splitter); g_text_editor = GTextEditor::construct(GTextEditor::MultiLine, inner_splitter); g_text_editor->set_ruler_visible(true); + g_text_editor->set_line_wrapping_enabled(true); + g_text_editor->set_automatic_indentation_enabled(true); auto new_action = GAction::create("New", { Mod_Ctrl, Key_N }, GraphicsBitmap::load_from_file("/res/icons/16x16/new.png"), [&](const GAction&) { // FIXME: Implement.