IDE (Integrated Development Environment)
An IDE is a development environment that combines an editor, a compiler, a debugger, and test tools in one program. For .NET, Visual Studio and Visual Studio Code with the C# Dev Kit are the usual ways.
An IDE (integrated development environment) is a development environment: an editor, a compiler, a debugger, and test tools in one program that understands the code. It suggests code as you type, shows errors at once, and runs programs step by step.
What an IDE does for .NET
For ASP.NET Core, Microsoft names two ways. Visual Studio is the comprehensive IDE: a debugger, Hot Reload (code changes without restarting the app), an integrated test runner, Live Share for working together, and tools for publishing to Azure. Visual Studio Code is a lightweight, cross-platform editor that works together with the .NET SDK and its command line. The C# Dev Kit adds solution management, templates, and finding and debugging tests to Visual Studio Code.
So the line between "editor" and "IDE" is fluid. What matters is what you need every day:
- Navigating and refactoring: safely renaming names across the whole program, extracting a method, removing unneeded
usinglines. - Debugging: setting breakpoints, stepping through the code, looking at variables and the call stack. .NET debugging in Visual Studio Code uses the same debugger implementation as Visual Studio, with a simpler user interface.
- Tests: finding, running, and debugging tests without leaving for the command line.
- Git: looking at changes and committing them, see Git.
The IDE does not replace understanding
What an IDE does at the push of a button, the command line does too: dotnet build, dotnet test, dotnet run. A build pipeline, in which no IDE runs, calls exactly these commands (continuous integration). Whoever only knows the green arrow faces a riddle there. Good practice is to be able to do both.
An example from the Kladde
In the course, you set up Visual Studio Code with the C# Dev Kit and open the Kladde, the sample application of a small IT office, in it as a solution. With "Rename Symbol", you rename all names of the Kladde to English in one go while the texts for the users stay German, and with quick actions you move code into methods of its own.
How it differs
- IDE and SDK: The SDK contains the compiler and the tools. The IDE is the user interface on top of it.
- IDE and framework: A framework such as ASP.NET Core is part of your program; the IDE is only your tool.
- License terms: Check the current terms of Visual Studio and the C# Dev Kit on the vendor's page before you use them in a company.
In the course
You learn this in K1, module 1.1, in the lesson The editor as a tool. You learn debugging in K1, module 1.6, in the lesson Debugging: finding bugs instead of guessing.
Sources
- Microsoft Learn, C# Dev Kit for Visual Studio Code: https://learn.microsoft.com/visualstudio/subscriptions/vs-c-sharp-dev-kit
- Microsoft Learn, Development process for Azure (development environment for ASP.NET Core): https://learn.microsoft.com/dotnet/architecture/modern-web-apps-azure/development-process-for-azure
- Microsoft Learn, .NET Core managed debuggers: https://learn.microsoft.com/dotnet/core/diagnostics/managed-debuggers