Is there a way to see the type of a variable declared with auto
in Android Studio? In Eclipse you can see this by mouse over the auto
keyword.
For example:
auto foo = 2.0F; // auto == float
auto bar = std::sqrt(25.0); // auto == double
Edit:
I am looking for an IDE solution, in this case Android studio. I would like Android Studio to tell me what is the deduced type of auto
. Just like Eclipse shows you when you mouse over an auto
keyword in code.