GitHub - dotnet/vscode-csharp: Official C# support for Visual Studio Code (original) (raw)

C# for Visual Studio Code

A Visual Studio Code extension that provides rich language support for C# and is shipped along with C# Dev Kit. Powered by a Language Server Protocol (LSP) server, this extension integrates with open source components like Roslyn and Razor 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 using C# Dev Kit.

  1. Installing C# Dev Kit will automatically install this extension as a required dependency.
  2. Open a folder/workspace that contains a C# project (.csproj) and a C# solution (.sln) and the extension will activate.
  3. 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 and MSBuild tooling.

Features

Learn more about the rich features of the C# extension:

For more information you can:

How to use OmniSharp?

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 setting dotnet.server.useOmnisharp to true. Next, uninstall or disable C# Dev Kit. Finally, restart VS Code for this to take effect.

Found a Bug?

To file a new issue, follow the instructions at https://github.com/dotnet/vscode-csharp/blob/main/SUPPORT.md.

Contributing

License

Copyright ยฉ .NET Foundation, and contributors.

The Microsoft C# extension is subject to these license terms. The source code to this extension is available on https://github.com/dotnet/vscode-csharp and licensed under the MIT license.

Code of Conduct

This project has adopted the code of conduct defined by the Contributor Covenantto clarify expected behavior in our community. For more information see the .NET Foundation Code of Conduct.

Contribution License Agreement

By signing the CLA, the community is free to use your contribution to .NET Foundation projects.

.NET Foundation

This project is supported by the .NET Foundation.

Feedback

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.