Emacs 中的代码浏览、重构、自动完成
我最近切换到 Emacs 并且仍在寻找解决方法.我用 C++ 编写代码,想知道有哪些工具可以扩展 Emacs 以支持代码浏览(查找符号等)、重构和代码完成.我听说过:
I recently switched to Emacs and still finding my way through it. I code in C++ and was wondering what tools out there extend Emacs to support code browsing (finding a symbol etc), refactoring and code completion. I have heard of:
- 塞特
- etags
- cscope
但是我对我需要什么感到很困惑.有些地方说 cedet 提供了所有功能,但其他地方说我需要调用 etags 才能使 cedet 正常工作.
But I'm so confused about what I need. Some places say that cedet provides all of the functionality but other places say that I need to invoke etags for cedet to work properly.
有人可以帮我解决这个问题吗?我需要所有这些工具吗?
Can someone clear this up for me? Do I need all of these tools?
推荐答案
也许你会找到我的 文章 关于 Cedet 很有用.Cedet 支持 etags、gtags、cscope 等工具.
Maybe you will find my article about Cedet useful. Cedet has support for etags, gtags, cscope and other tools.
但是缺少重构.您可能需要查看 Xrefactory 工具(但它不是免费的)
But refactoring is missing. You may need to look into the Xrefactory tool (but it isn't free)
相关文章