Refactoring C/C++ in Vim (e.g. method extraction like in Eclipse)

前端 未结 3 1931
一整个雨季
一整个雨季 2021-02-01 03:50

Are there any plugins or built-in methods in Vim for performing refactoring on C or C++ code, something like the refactoring tools in Eclipse?

I\'m especially keen on th

3条回答
  •  悲&欢浪女
    2021-02-01 04:14

    After searching high and low for vim with refactoring for C++, this is the best solution I have come up with.

    • Visual Studio 2013 and higher - Great IDE for C++ development and debugging, but does not have sufficient refactoring or vim
    • Install the vsvim plugin - Now, you have all the vim navigation, searching, string replacement, etc. (Some advanced features are not supported)
    • Install Resharp C++ - Great for refactoring at the cost of speed. It makes it a bit clunky, but if you want to infer auto generate methods/variables, rename local/global/method variables or functions, Search for usages in the solution, and more features, makes it extremely worth it.

    This is the best combination I found for C++ development, debugging and refactoring. Makes me at least 3x - 5x faster. Hope it helps you as well.

提交回复
热议问题