Вопрос

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

Refactorings Reference link

Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top