Преглед на файлове

HUE-9364 [editor] Use spaces instead of tab in the compose area

Avoid bad indentation when copy / pasting later.
Smaller indentation for testing now.
Romain преди 5 години
родител
ревизия
3485c7f144
променени са 1 файла, в които са добавени 2 реда и са изтрити 0 реда
  1. 2 0
      desktop/core/src/desktop/js/ko/bindings/ace/ko.aceEditor.js

+ 2 - 0
desktop/core/src/desktop/js/ko/bindings/ace/ko.aceEditor.js

@@ -259,6 +259,8 @@ registerBinding(NAME, {
         true
       );
     }
+    editorOptions['tabSize'] = 2;
+    editorOptions['useSoftTabs'] = true;
 
     editor.setOptions(editorOptions);