diff --git a/NEWS.md b/NEWS.md index 2da0c0e0..6926abe9 100644 --- a/NEWS.md +++ b/NEWS.md @@ -1,6 +1,7 @@ Version 0.7.5 - enhancement: more accurate auto indent calculation - change: remove "add indent" option in the editor general options widget ( It's merged with "auto indent" option) + - enhancement: auto insert a new line when input an enter between '(' and ')' or between '[' and ']' Version 0.7.4 - fix: when debug a project, and have breakpoints that not in opened editors, dev-cpp will crash diff --git a/README.md b/README.md index 939f4bcb..5d311566 100644 --- a/README.md +++ b/README.md @@ -1,24 +1,16 @@ # RedPanda Dev-C++ 7 -A light-weight C/C++ IDE based on Qt +A light-weight C/C++ IDE based on Qt. + This project is the successor of Red Panda Dev-C++ 6. -Features implemented: -* basic code editing (synedit) -* syntax highlight for C/C++ code -* symbol completion -* search/replace -* Compile & run -* debug -* code intellisense (auto completion) -* project support +All main features of version 6 have been ported. New Features: -* code intellisense for unicode identifiers +* Code intellisense for unicode identifiers +* Enhanced auto indent * TODO view -* memory view in the debug panel -* code intellisense for clang (msys2 version) -* skip system header files when step into in debugging -* better color scheme support +* Memory view in the debug panel +* Skip system header files when step into in debugging +* Better color scheme support * C++ 14 using type alias support -* some bug fixes for 6.7.5 - +* Code intellisense for clang (the msys2 version) diff --git a/RedPandaIDE/qsynedit/SynEdit.cpp b/RedPandaIDE/qsynedit/SynEdit.cpp index 7036430c..e4f0957a 100644 --- a/RedPandaIDE/qsynedit/SynEdit.cpp +++ b/RedPandaIDE/qsynedit/SynEdit.cpp @@ -1991,7 +1991,11 @@ void SynEdit::insertLine(bool moveCaret) mUndoList->AddChange(SynChangeReason::crLineBreak, caretXY(), caretXY(), rightLineText, SynSelectionMode::smNormal); //insert new line in middle of "{" and "}" - if (notInComment && leftLineText.endsWith('{') && rightLineText.startsWith('}')) { + if (notInComment && + ( (leftLineText.endsWith('{') && rightLineText.startsWith('}')) + || (leftLineText.endsWith('(') && rightLineText.startsWith(')')) + || (leftLineText.endsWith('[') && rightLineText.startsWith(')')) + )) { indentSpaces = calcIndentSpaces(mCaretY+1, "" , mOptions.testFlag(eoAutoIndent) && notInComment); indentSpacesForRightLineText = GetLeftSpacing(indentSpaces,true); diff --git a/RedPandaIDE/systemconsts.h b/RedPandaIDE/systemconsts.h index 2e68a596..861418cc 100644 --- a/RedPandaIDE/systemconsts.h +++ b/RedPandaIDE/systemconsts.h @@ -3,7 +3,7 @@ #include -#define DEVCPP_VERSION "0.7.4" +#define DEVCPP_VERSION "0.7.5" #define APP_SETTSINGS_FILENAME "redpandacpp.ini" #ifdef Q_OS_WIN