views:

1627

answers:

6

emacs 22.2.1 on Linux

I am doing some C/C++ programming using emacs. I am wondering does emacs support completions (IntelliSense in Visual Studio).

For example when filling structures I would like to see the list of members when I type the dot operator or arrow operator.

The same would go for function signatures that give me the types I am passing would display.

+3  A: 

I think you're looking for etags. http://tulrich.com/geekstuff/emacs.html

Search for TAGS.

GoingTharn
+6  A: 

Meta-/ isn't exactly intelligent, but it does iterate through known names.

This project provides the dropdown style menus you're used to:

http://ecb.sourceforge.net/

Paul McMillan
+1 for Meta+/. It's not smart but does the job most of the time.
Dave Webb
+4  A: 

you need to take latest version of CEDET package (better, directly from CVS). You can setup it, as described in documentation on this site

Alex Ott
there are also some packages (company-mode, auto-complete), that use CEDET to obtain data for completion, but implement different (from CEDET) completion style
Alex Ott
+2  A: 
A: 

If you'd like to use stock emacs to do completion from your project and library include files try this answer

justinhj
A: 

I have this in my .emacs, which makes things a bit easier.

(require 'c-eldoc) (add-hook 'c-mode-hook 'c-turn-on-eldoc-mode)

This way, I don't have to look up function definitions.

I don't write that much, but I agree that TAGS are also a very useful feature.

madsj