logoalt Hacker News

spot5010yesterday at 3:52 PM1 replyview on HN

Pre LLM agents, a trick that I used was to type in

auto var = FunctionCall(...);

Then, in the IDE, hover over auto to show what the actual type is, and then replace auto with that type. Useful when the type is complicated, or is in some nested namespace.


Replies

connicpuyesterday at 3:58 PM

That's what I still do. Replacing auto with deduced type is one of my favorite clangd code actions.