How can I refactor C++ source code using emacs?

前端 未结 9 798
孤独总比滥情好
孤独总比滥情好 2021-01-30 06:34

I\'m interested mostly in C++ and method/class name/signature automatic changes.

9条回答
  •  北荒
    北荒 (楼主)
    2021-01-30 07:07

    Build cscope symbols.

    lookup the symbol you want to refactor.

    get into the cscope window, and start a macro after placing cursor on first occurence

    • ret
    • c-f your symbol start
    • navigate to start of your symbol
    • modify the word
    • c-x o (back to cscope)
    • n (for next cscope symbol)

    you have to just c-x c-e now

提交回复
热议问题