C++ Refactoring - Move method to implementation file
-
28-10-2019 - |
Вопрос
I have lots of header files with long method implementation inside.
Is there An automatic way of doing that?
One-by-one can take a lot of time...
Thanks.
Решение
If you are using Visual Studio, there's an add-in called Visual Assist that can help you to do this. I'm using it at work and it is really helpful.
Unfortunately this add-in is not free but you can install the trial to do your stuff and test it.
Другие советы
KDevelop has such ability too:
Right click to the method -> Refactoring -> Move to cpp
In Eclipse CDT its combination is Alt+Shift+T
There's a free version of DevExpress Refactor! for C++ that has two automatic 'refactorings' that may suit your needs:
- Move Method to Source File
- Move Method to Header
Не связан с StackOverflow