[gnome-builder] libide/code: tweak defaults for C



commit b9f5c13665ce4409acb858759b6d7f6aead3a364
Author: Christian Hergert <chergert redhat com>
Date:   Tue Aug 16 13:41:09 2022 -0700

    libide/code: tweak defaults for C
    
    This makes things more like gnome-text-editor so that we treat real tabs
    as a whole 8 characters, but only indent with 2.
    
    This will likely have implications on the C indenter we need to fix before
    the final release, but that still needs work anyway.

 src/libide/code/defaults.ini | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)
---
diff --git a/src/libide/code/defaults.ini b/src/libide/code/defaults.ini
index 2923b09cc..cdbee164e 100644
--- a/src/libide/code/defaults.ini
+++ b/src/libide/code/defaults.ini
@@ -7,7 +7,7 @@
 # "all languages" default value will get that setting overridden. A potential
 # alternative is to layer backends, which is out of scope at the moment.
 [global]
-version = 12
+version = 13
 
 [automake]
 insert-spaces-instead-of-tabs = false
@@ -16,7 +16,8 @@ insert-trailing-newline = true
 
 [c]
 insert-spaces-instead-of-tabs = true
-tab-width = 2
+tab-width = 8
+indent-width = 2
 auto-indent = true
 insert-matching-brace = true
 insert-trailing-newline = true
@@ -25,7 +26,8 @@ spaces-style = before-left-paren;
 
 [chdr]
 insert-spaces-instead-of-tabs = true
-tab-width = 2
+tab-width = 8
+indent-width = 2
 auto-indent = true
 insert-matching-brace = true
 insert-trailing-newline = true


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]