Introduction
Learn how to get started with C# using text, documented code samples, and the essential software you need.
Before getting started
You are expected to have a basic understanding of writing code with or without using another programming language.
Almost every programming language relies on the same basic ideas, even if their exact wording looks different:
- Variables & Data Types: Variables store values you can reuse or update, such as numbers, text (strings), or true/false values.
- Control Flow (if/else & loops): Conditionals (if/else) let code choose between paths, while loops repeat steps while a condition holds true or across a list of items.
- Functions: Functions bundle a reusable set of steps under a name so you don't have to rewrite the same logic repeatedly.
- Lists & Collections: Structures like lists or arrays group multiple pieces of data together so you can work with them as a set.
Requirements
- A GitHub account to store project code; see the following page to create an account.
- An editor/IDE from Microsoft VS Code, Microsoft Visual Studio or JetBrains Rider
- For working with databases
- Just getting started SQL Server Management Studio
- All editors/IDE mentioned support various levels for working with data.
Benefits of GitHub
GitHub provides a centralized platform for software development, version control, and collaboration, helping developers manage source code, track changes, and maintain a comprehensive history of project changes. It supports team collaboration through branching, pull requests, and code reviews, allowing developers to work independently while maintaining code quality and consistency. GitHub also offers integrated tools for issue tracking, project management, automated testing, continuous integration and deployment (CI/CD), and security vulnerability detection. Additionally, it facilitates knowledge sharing through documentation, reusable code, and access to a vast open-source community. By adopting GitHub, developers and organizations can improve productivity, streamline workflows, strengthen security, reduce development risks, and promote accountability and transparency throughout the software development lifecycle.
💡 Repository visibility: Private or public when created or later down the road
IDE or editor
Visual Studio vs. Visual Studio Code vs. JetBrains Rider
Microsoft Visual Studio, Microsoft Visual Studio Code (VS Code), and JetBrains Rider are powerful development tools with different approaches to software development. Visual Studio and Rider are full-featured integrated development environments (IDEs), while VS Code is a lightweight, extensible code editor that can be configured to provide IDE-like capabilities.
🔸 Author’s primary environment is Microsoft Visual Studio, secondary VS Code
Microsoft Visual Studio
A comprehensive IDE designed for professional software development, particularly C#, .NET, ASP.NET Core, C++, and Windows desktop applications. It provides extensive integrated development, debugging, testing, and profiling tools
Visual Studio Code
A lightweight, cross-platform code editor that relies heavily on extensions. It is particularly well suited for web development, scripting, Python, JavaScript, TypeScript, and working with multiple programming languages.
JetBrains Rider
A cross-platform .NET IDE that combines JetBrains' IntelliJ platform with ReSharper technology. It emphasizes intelligent code analysis, navigation, refactoring, productivity, and integrated development tools.
Feature comparison
| Feature | Visual Studio | VS Code | JetBrains Rider |
|---|---|---|---|
| Application type | Full IDE | Code editor | Full IDE |
| Windows | Yes | Yes | Yes |
| macOS | No | Yes | Yes |
| Linux | No | Yes | Yes |
| Resource usage | High | Generally low | High |
| Startup speed | Moderate | Generally fast | Moderate |
| C# and .NET | Excellent | Very good | Excellent |
| ASP.NET Core | Excellent | Very good | Excellent |
| Razor Pages | Excellent | Good | Excellent |
| Blazor | Excellent | Very good | Excellent |
| WPF | Excellent | Limited | Very good |
| Windows Forms | Excellent | Limited | Very good |
| JavaScript/TypeScript | Very good | Excellent | Excellent |
| C++ | Excellent | Very good | Specialized support |
| Python | Very good | Excellent | Plugin-based |
| IntelliSense/code completion | Excellent | Very good | Excellent |
| Code refactoring | Very good | Good | Excellent |
| Code analysis | Very good | Extension-based | Excellent |
| Debugging | Excellent | Very good | Excellent |
| Performance profiling | Excellent | Limited | Excellent |
| Unit testing | Excellent | Extension-based | Excellent |
| Git integration | Excellent | Excellent | Excellent |
| GitHub integration | Excellent | Excellent | Very good |
| NuGet management | Built-in | Extension/CLI | Built-in |
| Database tools | Built-in | Extension-based | Built-in |
| Integrated terminal | Yes | Yes | Yes |
| AI-assisted development | Yes | Yes | Yes |
| Extensions/plugins | Extensive | Extensive | Extensive |
Advantages and disadvantages
Microsoft Visual Studio
| 🟢 Advantages | 🔴 Disadvantages |
|---|---|
|
|
Microsoft Visual Studio Code
| 🟢 Advantages | 🔴 Disadvantages |
|---|---|
|
|
JetBrains Rider
| 🟢 Advantages | 🔴 Disadvantages |
|---|---|
|
|
C# and .NET development
For developers working with C#, ASP.NET Core, Entity Framework Core, Dapper, SQL Server, and Razor Pages, the following comparison is particularly relevant.
| Development task | Visual Studio | VS Code | Rider |
|---|---|---|---|
| Large C# solutions | Excellent | Good | Excellent |
| Dependency injection | Excellent | Very good | Excellent |
| Entity Framework Core | Excellent | Good | Excellent |
| Dapper | Excellent | Very good | Excellent |
| SQL Server development | Excellent | Good | Excellent |
| Oracle database development | Extension-based | Extension-based | Excellent |
| SQLite development | Very good | Extension-based | Excellent |
| NuGet package management | Excellent | Good | Excellent |
| C# language features | Excellent | Very good | Excellent |
| Code cleanup | Very good | Good | Excellent |
| Detecting redundant code | Very good | Good | Excellent |
| Navigating complex solutions | Excellent | Good | Excellent |
| Decompiling assemblies | Supported | Extension-based | Built-in |
Licensing
| Edition or license | Visual Studio | VS Code | Rider |
|---|---|---|---|
| Personal development | Free Community edition | Free | Free for non-commercial use |
| Open-source development | Free under qualifying terms | Free | Free under qualifying terms |
| Commercial development | License restrictions apply | Base editor is free | Paid commercial license |
| Enterprise development | Professional or Enterprise licensing | Free editor; some extensions require licensing | Commercial licensing |
| Educational use | Free under qualifying terms | Free | Free under qualifying terms |
Important for organizations: Although VS Code is free, Microsoft's C# Dev Kit has separate licensing requirements. Commercial teams of up to five developers can use it at no cost. Teams of six or more require qualifying Visual Studio subscriptions for those users. Visual Studio Community also has organizational licensing restrictions.
Which development environment should you choose?
| Development scenario | Recommended environment |
|---|---|
| Enterprise Microsoft .NET applications | Visual Studio |
| Windows desktop applications | Visual Studio |
| Legacy .NET Framework applications | Visual Studio |
| Advanced C# refactoring | Visual Studio or Rider |
| Cross-platform .NET development | Visual Studio or Rider |
| Database-intensive applications | Visual Studio or Rider |
| HTML, CSS and Bootstrap development | VS Code |
| JavaScript and TypeScript | VS Code |
| Lightweight editing and scripting | VS Code |
| Large-scale C# applications | Visual Studio or Rider |
| Full-stack ASP.NET Core development | Visual Studio or Rider |
Conclusion: Visual Studio offers the most comprehensive Microsoft development experience, Rider excels at intelligent code analysis and developer productivity, and VS Code provides the greatest flexibility as a lightweight, general-purpose code editor. For professional C# developers, these three products can complement one another rather than being mutually exclusive alternatives.
Documentation
Documentation means business requirements, solution, project, class and methods. Documentation helps with debugging, refactoring, code reviews, and pull requests, and it helps other developers understand the code.
All professional IDEs/Editors have a feature to collapse documentation for developers who don't want to see it.
Collapsed documentation
Without comments, what is the reason for
return settings.Count == itemCount;
Some developers will say good naming conventions are enough for documentation, which may or may not work for every developer.
AI can help write documentation at various levels.
- Copilot
- JetBrains AI
Part 1 summary
Basic information has been written; Part 2 goes into more detail.
- Code
- Configurations
- Working with data


Top comments (0)