- Notifications
You must be signed in to change notification settings - Fork714
Official C# support for Visual Studio Code
License
dotnet/vscode-csharp
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
AVisual Studio Codeextension that provides rich language support for C# and is shipped along withC# Dev Kit. Powered by a Language Server Protocol (LSP) server, this extension integrates with open source components likeRoslyn andRazor to provide rich type information and a faster, more reliable C# experience.
While it is possible to use the C# extension as a standalone extension, we highly recommend usingC# Dev Kit.
- InstallingC# Dev Kit will automatically install this extension as a required dependency.
- Open a folder/workspace that contains a C# project (.csproj) and a C# solution (.sln) and the extension will activate.
- Whether you install C# Dev Kit or just the C# extension, the.NET Install Tool will be installed as a dependency.
Note: If working on a solution that requires versions prior to .NET 6 or non-solution based projects, install a .NET Framework runtime andMSBuild tooling.
- Set omnisharp.useModernNet to false and set dotnet.server.useOmnisharp to true
- Uninstall or disable C# Dev Kit
- Windows: .NET Framework along withMSBuild Tools
- MacOS/Linux:Mono with MSBuild
Learn more about the rich features of the C# extension:
- Refactoring: Edit your code with code fixes and refactorings
- Navigation: Explore and navigate your code with features like Go To Definition and Find All References
- IntelliSense: Write code with auto-completion
- Formatting and Linting: Format and lint your code
For more information you can:
- Follow our C# tutorial with step-by-step instructions for building a simple app.
- Check out theC# documentation on the VS Code site for general information about using the extension.
If you don’t want to take advantage of the great Language Server features, you can revert back to using OmniSharp by going to the Extension settings and settingdotnet.server.useOmnisharp
to true. Next, uninstall or disable C# Dev Kit. Finally, restart VS Code for this to take effect.
To file a new issue, follow the instructions athttps://github.com/dotnet/vscode-csharp/blob/main/SUPPORT.md.
Copyright © .NET Foundation, and contributors.
The Microsoft C# extension is subject tothese license terms.The source code to this extension is available onhttps://github.com/dotnet/vscode-csharp and licensed under theMIT license.
This project has adopted the code of conduct defined by theContributor Covenantto clarify expected behavior in our community.For more information see the.NET Foundation Code of Conduct.
By signing theCLA, the community is free to use your contribution to.NET Foundation projects.
This project is supported by the.NET Foundation.
Provide feedbackFile questions, issues, or feature requests for the extension.
Known issuesIf someone has already filed an issue that encompasses your feedback, please leave a 👍 or 👎 reaction on the issue to upvote or downvote it to help us prioritize the issue.
Quick surveyLet us know what you think of the extension by taking the quick survey.
About
Official C# support for Visual Studio Code
Topics
Resources
License
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Packages0
Uh oh!
There was an error while loading.Please reload this page.