Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Perhaps this is an appopriate place to ask:

What is the best C++ IDE on the Mac?

In particular, fully project-aware autocomplete is a baseline feature. Does emacs or Vim offer an autocomplete plugin that matches the power of IntelliJ, or even Xcode?

Is CLion worth the money? Other paid alternatives?



If you're comfortable with emacs, irony + rtags does pretty much all the IDE-type things I need it to. You can autoconfigure rtags based on your build system (supports basically all of them). you get variable type hints, function arg hints, contextual autocomplete (including template stuff), jump to definition, find references, you can fuzzy find and jump to methods/identifiers/symbols across your project, compiler warnings highlighted inline, it's a pretty good setup. I use the doom-emacs distribution which has it all configured and ready to go, im sure spacemacs also has a good setup


I haven't used CLion so can't comment on that, but I have tried a few other alternatives. QT Creator [1] has always worked very well for me. If you want to stick with vim there is YouCompleteMe[2]. You can also try using any editor that supports the LanguageServer protocol [3] and then use a C++ language server to provide cross references, hierarchies, completion and more. Microsoft has a language server plugin for vscode [4], there is also CCLS [5], cquery [6] or clangd [7] which can be made to work with both vim and emacs.

[1] https://www.qt.io/download

[2] https://valloric.github.io/YouCompleteMe/

[3] https://langserver.org/

[4] https://marketplace.visualstudio.com/items?itemName=ms-vscod...

[5] https://github.com/MaskRay/ccls

[6] https://github.com/cquery-project/cquery

[7] https://clang.llvm.org/extra/clangd.html


Anything with a Cquery plugin. (I personally use VS Code, but cquery is the important part)




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: