Narrated, with original music and captions. Recorded in VS Code on the Shop demo with Cmd+. and F2. Fast-forwarded stretches are marked on screen.

Refactoring and code actions in VS Code with SharpLsp: generate a missing F# union case, rename across files, generate a C# method, add a missing using

Read the guide: Refactoring & Code Actions

Transcript

Code actions turn problems into code. This F# match misses a union case. Press Command dot, and SharpLsp writes it for you.

Rename is built in. Press F2, and the new name reaches every file in the project.

In C#, Roslyn's own fixes and refactorings are on hand. Call a method that doesn't exist yet, and generate it in one step.

Use a type without its namespace, and one fix adds the using directive.