While reading the MSDN article on converting VBA applications to C# 4.0, I remembered the famous ALT+[Selection] function that allows you to insert the same text/code on multiple lines at once. So, here is the English version of that part of the article:
Press ALT and select where you want to insert your code (selection in light blue in the image below):![]()
Type your code and boom! All the selected lines have been filled with your code:
And as a comment in the article specifies, this can also be applied to the end of a line, such as adding semicolons at the end of your lines!
See also
- dotnet watch: you use it for hot reload. You should do more with it.
- Microsoft Agent Framework: First Agent, MCP, and Multi-Agent Workflows
- MCP in C#: Exposing Your Own Tools to Any AI Client
- Inside the Architecture: Patterns, Data Modeling, and Extensibility in Mes Recettes
- Mes Recettes: Building a Modern Recipe Index with Blazor WebAssembly & Supabase