Move refactorings help you move files, directories, class members, and declarations within a project. CLion corrects all the references to the moved symbols and tracks the dependencies to warn you about potential issues.

To invoke this refactoring, select the desired element in the Project tool window, in the editor, or in the Structure tool window, and press &shortcut:Move; (Refactor | Move ).

move refactoring