还有比如有没有代码跳转的扩展?右键点击一个函数或者一个类e跳转到声明地点?
ps:都在说没有相关插件,可是为什么atom右键里面有“跳转至声明点”这个选项,我也不清楚我是装了哪个插件才有的。不过我点了这个按钮之后没任何反应
PHPz2017-04-17 14:30:29
Thank you for the invitation.
I really don’t know this because I don’t use an atom editor.
Let’s talk about what I commonly use.
Visual Studio Code
Editor + clang plugin. You can read this article http://www.codepool.biz/vscode-format-c-code-windows-linux.html
vim
, you can read this article http://www.cnblogs.com/oloroso/p/5775421.html
and it is very easy to use with the nerdtree
plug-in.
大家讲道理2017-04-17 14:30:29
At the request of the questioner, the answer is rewritten as:
The questioner is a little embarrassed about atom. It is not an IDE, but a code editor, used for code highlighting and automatic completion.
This kind of function/class analysis capability is within the scope of IDE, because It requires the ability to parse code semantics like a compiler
autocomplete-clang
You can pull information from the header file to achieve automatic completion of library functions, but you cannot achieve the jump mentioned by the question
In fact, atom is the entire browser, so the support for javascript is quite good, but the support for C++ is relatively insufficient. There is basically no feasible solution at present
ringa_lee2017-04-17 14:30:29
For C++, use VS for Win and clion for Mac. They all have vim plug-ins, so why torture yourself. . .
巴扎黑2017-04-17 14:30:29
It seems that there is no such jump as you mentioned. The more popular ones are these two:
autocomplete-clang
linter-clang
Atom’s support for C++ is really average. If you basically only do C++ development, you can really consider an IDE specially designed for C++