I suggest you ...

Enable Go To Definition (F12) should go to source if source symbols are available

Right now, source code integration for framework sources (or any other source-indexed PDB) is clunky. You have to be in a debug session for it to pull down the source.

If you're not in a debug session and use Go To Definition/Ctrl-Click/F12 on a Type/Method/Property, it'll take you to the object browser, or a code view that shows just the signatures.

I propose that VS check for a source PDB in the symbol path first, then if available, use the source code directly. This would be an option, of course, so people can retain the current behavior. It would also presumably cache failed PDB lookups for a period of time to prevent repeated slow lookups. There may also be a way to "force" VS to check for/dl PDBs for the current solution. Bonus: if newer source-enabled PDBs are present, it should replace the existing one.

Overall, this would make it easier to navigate through the source while in the editing context. One could set breakpoints and have them be hit as expected.

320 votes
Vote
Sign in
(thinking…)
Password icon
Signed in as (Sign out)
You have left! (?) (thinking…)
Oren Novotny shared this idea  ·   ·  Flag idea as inappropriate…  ·  Admin →

4 comments

Sign in
(thinking…)
Password icon
Signed in as (Sign out)
Submitting...

Feedback and Knowledge Base