code browsing, refactoring, auto completion in Emacs(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)
这篇关于Emacs 中的代码浏览、重构、自动完成的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:Emacs 中的代码浏览、重构、自动完成
基础教程推荐
- 为什么 typeid.name() 使用 GCC 返回奇怪的字符以及如 2022-09-16
- CString 到 char* 2021-01-01
- 为什么 RegOpenKeyEx() 在 Vista 64 位上返回错误代码 2021-01-01
- 通过引用传递 C++ 迭代器有什么问题? 2022-01-01
- 为什么派生模板类不能访问基模板类的标识符? 2021-01-01
- 我应该对 C++ 中的成员变量和函数参数使用相同的名称吗? 2021-01-01
- 如果我为无符号变量分配负值会发生什么? 2022-01-01
- GDB 显示调用堆栈上函数地址的当前编译二进制文 2022-09-05
- 初始化列表*参数*评估顺序 2021-01-01
- 非静态 const 成员,不能使用默认赋值运算符 2022-10-09
