Reputation: 457
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
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