Hey, I know that emacs supports code completion. But to be honest I have never been a good FAQ reader, at least for something that I'm completely new to. So I wonder what I need to download and how to make so emacs can do some smart code completion for me in C++, and Java. Or is there any package which does code completion for many of major languages?
|
feedback
|
|
The basic way that will work across any sort of buffer in emacs is dynamic abbreviation used by hitting That will expand text to duplicate other strings already existing in your current buffer or in other buffers currently open. For more extensive code completion that is language specific for C++ or Java (or others), you'll want to look at a code templating or snippet package. There are some discussed in this related question on StackOverflow. One that is commonly mentioned in these discussions is yasnippet -- there's a screencast demo in this post on an emacs blog. | |||
|
feedback
|
|
Short answer: Long answer: RTFM :-) | |||||||||
feedback
|
|
Short answer: I know none for emacs that is useful for java. Dynamic expand does not care for the libraries in your class path, it does not know anything about the code you're typing it can only expand to text that already exists in one of the buffers. JDE and emacs-eclim try to provide this functionality but personally I was not impressed. | |||
|
feedback
|