diff --git a/plugins/clang/codecompletion/context.cpp b/plugins/clang/codecompletion/context.cpp --- a/plugins/clang/codecompletion/context.cpp +++ b/plugins/clang/codecompletion/context.cpp @@ -354,6 +354,9 @@ } else { document->replaceText(word, m_replacement); } + + // place cursor after the opening brace + view->setCursorPosition(view->cursorPosition() + KTextEditor::Cursor{-2, 1}); } };