开发者

C++ Refactoring - Move method to implementation file

I have lots of header files with lon开发者_运维百科g 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.


In Eclipse CDT its combination is Alt+Shift+T


KDevelop has such ability too:

Right click to the method -> Refactoring -> Move to cpp


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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜