Auto completion keyword in Emacs
for example when I am typing int main() it would be nic开发者_运维问答e if I could just hit tab and get the list of keywords (auto completion) I want. How can I do this in Emacs?
You can autocomplete with M-/
. There are also other autocomplete packages available.
You need CEDET, it contains many good tools that can be used to make EMACS have many features that you would see in a more modern IDE.
You may use yasnippet. By writing 'main' and then TAB, you get
int main (int argc, char *argv[])
{
return 0;
}
(This is not really auto completion.)
Asher's answer with the list is probably the best but if you want something that gives you a drop down of possible (non semantic) completions which you can select, you can use auto complete mode.
精彩评论