开发者

C++ Refactoring - Move method to implementation file

开发者 https://www.devze.com 2023-03-13 01:53 出处:网络
I have lots of header files with lon开发者_运维百科g method implementation inside. Is there An automatic way of doing that?

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

精彩评论

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

关注公众号