Hacker News new | ask | show | jobs
by spot5010 187 days ago
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.

1 comments

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