From 70347427410c1362323cb972d1f1ff1c6151a6a4 Mon Sep 17 00:00:00 2001 From: Roy Qu Date: Wed, 27 Mar 2024 19:50:44 +0800 Subject: [PATCH] - change: Don't turn on the code format option "indent class" by default. --- NEWS.md | 3 ++- RedPandaIDE/settings.cpp | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/NEWS.md b/NEWS.md index f791ef7b..10c298be 100644 --- a/NEWS.md +++ b/NEWS.md @@ -99,7 +99,8 @@ Red Panda C++ Version 2.27 - enhancement: Open ".def" (Module definition file) file in editor when double click it in the project view. - enhancement: When a dll project has .def file, use it when generating the dll file. - fix: "project name".exe.manifest is auto removed when build the project. - - fix: "0x3.12p+1" is treadted as a plus expression when reformatting code ( by 绣球135@qq ) + - fix: "0x3.12p+1" is treadted as a plus expression when reformatting code. ( by 绣球135@qq ) + - change: Don't turn on the code format option "indent class" by default. Red Panda C++ Version 2.26 - enhancement: Code suggestion for embedded std::vectors. diff --git a/RedPandaIDE/settings.cpp b/RedPandaIDE/settings.cpp index f9e925bc..805acc91 100644 --- a/RedPandaIDE/settings.cpp +++ b/RedPandaIDE/settings.cpp @@ -5744,7 +5744,7 @@ void Settings::CodeFormatter::doLoad() mAttachInlines = boolValue("attach_inlines",false); mAttachExternC = boolValue("attach_extern_c",false); mAttachClosingWhile = boolValue("attach_closing_while",false); - mIndentClasses = boolValue("indent_classes",true); + mIndentClasses = boolValue("indent_classes",false); mIndentModifiers = boolValue("indent_modifiers",false); mIndentSwitches = boolValue("indent_switches",true); mIndentCases = boolValue("indent_cases",false);