Narrated, with original music and captions. Recorded in VS Code on the Shop demo: F12 in F# and C#, Shift+F12 on a record, and F12 on JsonSerializer.

Navigation in VS Code with SharpLsp: go to definition in F# and C#, find all references in a peek window, and framework source decompiled

Read the guide: Go to Definition

Transcript

Press F12 on any symbol to jump to its definition. In F#, the F# compiler resolves it across files: here, a union case declared in another file.

In C#, Roslyn does the same, from the program straight into the checkout pipeline.

Shift F12 finds every reference across the solution, in a peek window you can browse without losing your place.

It works for the framework too. F12 on JsonSerializer opens its source, decompiled from the assembly.