[Lldb-commits] [lldb] 47aca75 - [LLDB][REPL] Change the default tab size

walter erquinigo via lldb-commits lldb-commits at lists.llvm.org
Mon Aug 28 14:47:40 PDT 2023


Author: walter erquinigo
Date: 2023-08-28T17:47:30-04:00
New Revision: 47aca7562abe8de378fdb88160ece9e3fcac24f4

URL: https://github.com/llvm/llvm-project/commit/47aca7562abe8de378fdb88160ece9e3fcac24f4
DIFF: https://github.com/llvm/llvm-project/commit/47aca7562abe8de378fdb88160ece9e3fcac24f4.diff

LOG: [LLDB][REPL] Change the default tab size

The REPL has a default tab size of 4 spaces, which seems to be a bit too much. The reason is that the REPL transforms tabs into spaces, and therefore whenever you want to manually deindent, you need to delete at least 4 characters. On the other hand, using 2 as default results in less keystrokes, without hurting readability.

Added: 
    

Modified: 
    lldb/source/Core/CoreProperties.td

Removed: 
    


################################################################################
diff  --git a/lldb/source/Core/CoreProperties.td b/lldb/source/Core/CoreProperties.td
index e3ba08dfa210fa..c7d69676f6e14c 100644
--- a/lldb/source/Core/CoreProperties.td
+++ b/lldb/source/Core/CoreProperties.td
@@ -173,8 +173,8 @@ let Definition = "debugger" in {
     Desc<"If true, LLDB will print the values of variables declared in an expression. Currently only supported in the REPL (default: true).">;
   def TabSize: Property<"tab-size", "UInt64">,
     Global,
-    DefaultUnsignedValue<4>,
-    Desc<"The tab size to use when indenting code in multi-line input mode (default: 4).">;
+    DefaultUnsignedValue<2>,
+    Desc<"The tab size to use when indenting code in multi-line input mode (default: 2).">;
   def EscapeNonPrintables: Property<"escape-non-printables", "Boolean">,
     Global,
     DefaultTrue,


        


More information about the lldb-commits mailing list