diff --git a/src/plugins/texteditor/texteditor.cpp b/src/plugins/texteditor/texteditor.cpp index 82948a8c16d..6cf2221da7b 100644 --- a/src/plugins/texteditor/texteditor.cpp +++ b/src/plugins/texteditor/texteditor.cpp @@ -8365,6 +8365,11 @@ void TextEditorWidget::appendStandardContextMenuActions(QMenu *menu) if (!menu->actions().contains(findUsage)) menu->addAction(findUsage); } + if (optionalActions() & TextEditorActionHandler::RenameSymbol) { + const auto renameSymbol = ActionManager::command(Constants::RENAME_SYMBOL)->action(); + if (!menu->actions().contains(renameSymbol)) + menu->addAction(renameSymbol); + } if (optionalActions() & TextEditorActionHandler::CallHierarchy) { const auto callHierarchy = ActionManager::command(Constants::OPEN_CALL_HIERARCHY)->action(); if (!menu->actions().contains(callHierarchy))