windrg00
windrg00

Reputation: 457

Show its type of a variable in Emacs

I'd like to know whether Emacs has a functionality like Visual Studio's that shows the type of a variable in a C/C++ program.

Could you also let me know if this requires certain packages or tricks.

Upvotes: 1

Views: 383

Answers (1)

Rorschach
Rorschach

Reputation: 32416

For C/C++, you can see variable type info by enabling the builtin semantic-mode in your C/C++ hooks. Ensure that semantic-default-submodes contains global-semantic-idle-summary-mode which is the submode responsible for displaying the type info in the echo area.

You could probably find alternatives using external packages like irony.

Upvotes: 3

Related Questions