Browse Source

HackStudio: Enable line wrapping and automatic indentation by default

Andreas Kling 5 years ago
parent
commit
db353a06e5
1 changed files with 2 additions and 0 deletions
  1. 2 0
      DevTools/HackStudio/main.cpp

+ 2 - 0
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.