Templ Project Csharp Extension Pack
Essential C# development environment for VSCode - comprehensive .NET tooling with IntelliSense, debugging, testing, and modern C# features
📦 What's Included
This extension pack includes 8 carefully selected extensions to enhance your csharp development experience in vscode.
✅ Core Extensions (4)
These extensions are essential for csharp development:
- C# - Base language support for C#
- C# Dev Kit - Official C# extension from Microsoft
- EditorConfig for VS Code - EditorConfig Support for Visual Studio Code
- Error Lens - Improve highlighting of errors, warnings and other language diagnostics
💡 Additional Extensions (4)
These extensions provide extra functionality and convenience:
🚀 Installation
Method 1: Install from Marketplace
- Open Vscode
- Go to Extensions view (
Ctrl+Shift+X
/ Cmd+Shift+X
)
- Search for "Templ Project Csharp Extension Pack"
- Click "Install"
Method 2: Install via Command Line
code --install-extension @templ-project/csharp-extension-pack
Method 3: Install from VSIX
- Download the latest
.vsix
file from Releases
- Open Vscode
- Run
Extensions: Install from VSIX...
command
- Select the downloaded file
⚙️ Configuration
After installation, you may want to configure some settings for optimal csharp development:
"csharp.format.enable": true
Enable C# formatting
csharp.semanticHighlighting.enabled
"csharp.semanticHighlighting.enabled": true
Enable semantic highlighting for C#
csharp.completion.trigger
"csharp.completion.trigger": true
Enable completion triggers
dotnet.server.useOmnisharp
"dotnet.server.useOmnisharp": false
Use the new .NET Language Server instead of OmniSharp
dotnet.completion.showCompletionItemsFromUnimportedNamespaces
"dotnet.completion.showCompletionItemsFromUnimportedNamespaces": true
Show completion items from unimported namespaces
dotnet.inlayHints.enableInlayHintsForParameters
"dotnet.inlayHints.enableInlayHintsForParameters": true
Enable inlay hints for parameters
dotnet.inlayHints.enableInlayHintsForLiteralParameters
"dotnet.inlayHints.enableInlayHintsForLiteralParameters": true
Enable inlay hints for literal parameters
dotnet.inlayHints.enableInlayHintsForIndexerParameters
"dotnet.inlayHints.enableInlayHintsForIndexerParameters": true
Enable inlay hints for indexer parameters
dotnet.inlayHints.enableInlayHintsForObjectCreationParameters
"dotnet.inlayHints.enableInlayHintsForObjectCreationParameters": true
Enable inlay hints for object creation parameters
dotnet.inlayHints.enableInlayHintsForOtherParameters
"dotnet.inlayHints.enableInlayHintsForOtherParameters": false
Enable inlay hints for other parameters
dotnet.inlayHints.enableInlayHintsForTypeParameters
"dotnet.inlayHints.enableInlayHintsForTypeParameters": true
Enable inlay hints for type parameters
files.associations
"files.associations": {
"*.cs": "csharp",
"*.csx": "csharp",
"*.cake": "csharp",
"*.cshtml": "aspnetcorerazor",
"*.razor": "aspnetcorerazor"
}
File associations for C# files
[csharp]
"[csharp]": {
"editor.defaultFormatter": "ms-dotnettools.csharp",
"editor.formatOnSave": true,
"editor.formatOnType": true,
"editor.codeActionsOnSave": {
"source.organizeImports": "explicit"
}
}
C# specific editor settings
dotnet-test-explorer.testProjectPath
"dotnet-test-explorer.testProjectPath": "**/*Tests.csproj"
Pattern to find test projects
dotnet-test-explorer.useTreeView
"dotnet-test-explorer.useTreeView": true
Use tree view for test explorer
⌨️ Recommended Keybindings
- Format current C# file:
ctrl+shift+f
- Go to definition:
f12
- Find all references:
shift+f12
- Go to symbol in file:
ctrl+shift+o
- Go to symbol in workspace:
ctrl+t
- Show code actions (quick fixes):
ctrl+.
📝 Extension Details
Extension |
Publisher |
Description |
C# |
Microsoft |
Base language support for C# |
C# Dev Kit |
Microsoft |
Official C# extension from Microsoft |
EditorConfig for VS Code |
EditorConfig |
EditorConfig Support for Visual Studio Code |
Error Lens |
Alexander |
Improve highlighting of errors, warnings and other language diagnostics |
C# Extensions |
Kreativ Software |
C# IDE Extensions for VSCode |
.NET Core Test Explorer |
Jun Han |
Test Explorer for .NET Core (MSTest, xUnit, NUnit) |
C# Snippets |
Jorge Serrano |
C# Snippets for Visual Studio Code |
Roslynator |
Josef Pihrt |
A collection of 500+ analyzers, refactorings and fixes for C#, powered by Roslyn |
🏷️ Categories
📄 License
Extension Pack License
This extension pack is licensed under the MIT License - see LICENSE.md for details.
Third-Party Extension Licenses
Important: Each extension included in this pack has its own license terms. templ-project is not responsible for the licensing, functionality, or security of third-party extensions.
Extension |
Publisher |
License |
Description |
C# |
Microsoft |
MIT |
Base language support for C# |
C# Dev Kit |
Microsoft |
MIT |
Official C# extension from Microsoft |
EditorConfig for VS Code |
EditorConfig |
MIT |
EditorConfig Support for Visual Studio Code |
Error Lens |
Alexander |
MIT |
Improve highlighting of errors, warnings and other language diagnostics |
C# Extensions |
Kreativ Software |
MIT |
C# IDE Extensions for VSCode |
.NET Core Test Explorer |
Jun Han |
MIT |
Test Explorer for .NET Core (MSTest, xUnit, NUnit) |
C# Snippets |
Jorge Serrano |
MIT |
C# Snippets for Visual Studio Code |
Roslynator |
Josef Pihrt |
MIT |
A collection of 500+ analyzers, refactorings and fixes for C#, powered by Roslyn |
Disclaimer
- We do not guarantee the functionality, security, or compatibility of included extensions
- We are not responsible for any issues caused by third-party extensions
- Users install and use extensions at their own risk
- Please review each extension's license and privacy policy before use
🤝 Contributing
Found an issue or want to suggest an extension? Please open an issue or submit a pull request.
📊 Extension Pack Stats
- Total Extensions: 8
- Required Extensions: 4
- Optional Extensions: 4
- Target IDE: vscode
- Language Focus: csharp
This extension pack is maintained by templ-project and updated regularly to include the most useful csharp development extensions.