3 ms·
I just want a text editor with good intelligent c++: code completion, call tree generation, jump to declaration/definition and syntax highlighting - that works
by bobajeff 11y ago
I just want a text editor with good intelligent c++: code completion, call tree generation, jump to declaration/definition and syntax highlighting - that works on the command line so I can use it over ssh.
- S4M 11y agoI don't know about call tree generation, but with some tweaking Emacs should do all the rest, have you tried it? (I don't code in C++ myself).
- bobajeff 11y agoBriefly. I tried to get Rtags to work. I failed then gave up.
- drdaeman 11y agoA good intelligent code editing would either require a good pile of hacks or a completely different approach. Common "text code editors" don't understand a thing about the code they edit. They're just supplemented with ton of hacks that produce meaningful result in acceptably high number of cases (like regex-based highlighters) but still don't have "real" intelligence towards the content of their buffers. And with ever-growing number of hacks the thing's unlikely to be small or low on dependencies. You'll end up with another emacs/vim/etc - a fairly small cores, and then a scripting or external tool execution support to do highlighting, parsing, context-aware searching, refactoring etc etc to make them useful for code editing. (And then why bother when we have emacs and vim already?)
- bobajeff 11y ago>And with ever-growing number of hacks the thing's unlikely to be small or low on dependencies. You'll end up with another emacs/vim/etc That's acceptable as long as it works.
- drdaeman 11y agoDon't Emacs or VIM already do? And, well, if they don't work, it's certainly easier to patch their hacks or pile even more hacks, rather than trying to redo everything from a clean slate.
- bobajeff 11y agoNo and I'm not suggesting they reinvent the wheel either. I also don't care if it's a "common text editor" either. It can be a full blown IDE for all I care. I just want it to work correctly and in the command line so I can use it over ssh.
- danmaz74 11y agoAppears to me what you really want is a full-featured IDE working in the terminal. I guess the market for that would be too small.
- bobajeff 11y agoWhat I really want is a way to debug, compile, examine and code C++ using a build server for all the cpu heavy tasks.
- danmaz74 11y agoI think you could use a web IDE for that, instead of a terminal IDE. There are already several web IDE AFAIK.
- bobajeff 11y agoI seriously doubt that there is one that works well for C++ development. Even if there was it would only work with thier own server and I wouldn't have control over updates. I simply want more control over the tools I'm relying on than what they'd provide.
- 11y ago
- jussij 11y agoOne option is to use an editor that has a clang based plug-in.
- bobajeff 11y agoIn theory that would work but in practice I've found that they still don't quite work correctly. Some need to compile the program to work. (So they can't work if the code has compile time errors) Some still don't retrieve all the correct candidates for autocompletion. Also, it's been awhile since I've tried a clang based plugin but I can't recall any of them controlling the syntax highlighting (eg. Show false #ifdef sections similar to comments) or providing a call tree or jump to caller feature.