[Lldb-commits] [PATCH] D158958: [LLDB][REPL] Change the default tab size
walter erquinigo via Phabricator via lldb-commits
lldb-commits at lists.llvm.org
Sun Aug 27 11:42:43 PDT 2023
wallace created this revision.
wallace added reviewers: bulbazord, JDevlieghere.
Herald added a project: All.
wallace requested review of this revision.
Herald added a project: LLDB.
Herald added a subscriber: lldb-commits.
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.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D158958
Files:
lldb/source/Core/CoreProperties.td
Index: lldb/source/Core/CoreProperties.td
===================================================================
--- lldb/source/Core/CoreProperties.td
+++ lldb/source/Core/CoreProperties.td
@@ -173,8 +173,8 @@
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,
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D158958.553803.patch
Type: text/x-patch
Size: 764 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20230827/58863e76/attachment.bin>
More information about the lldb-commits
mailing list