C# for Visual Studio Code (powered by OmniSharp)Welcome to the C# extension for Visual Studio Code! This extension provides the following features inside VS Code:
The C# extension is powered by OmniSharp. Get Started Writing C# in VS CodeAnnouncementsPlanned removal of the included Mono & MSBuild ToolsIn the future .NET Framework builds of OmniSharp will not ship with Mono or the MSBuild tooling (See announcement omnisharp-roslyn#2339). To ensure that the C# extension remains usable out of the box for .NET SDK projects, we will be changing the default value of See issue #5120 for more details. Using .NET 6 builds of OmniSharpStarting with C# extension version 1.24.0, there is now an option to use build of OmniSharp that runs on the .NET 6 SDK. This build requires that the .NET 6 SDK be installed and does not use Visual Studio MSBuild tools or Mono. It only supports newer SDK-style projects that are buildable with To use the .NET 6 build, set Note about using .NET Core 3.1.4xx SDKsThe .NET 3.1.4xx SDKs require version 16.7 of MSBuild. For MacOS and Linux users who have Mono installed, this means you will need to set You can also use the .NET 6 build of OmniSharp which runs on the .NET 6 SDK. See instructions above. Note about using .NET 5 SDKsThe .NET 5 SDK requires version 16.8 of MSBuild. For Windows users who have Visual Studio installed, this means you will need to be on the latest Visual Studio 16.8 Preview. For MacOS and Linux users who have Mono installed, this means you will need to set You can also use the .NET 6 build of OmniSharp which runs on the .NET 6 SDK. See instructions above. Note about using .NET 6 SDKsThe .NET 6 SDK requires version 16.10 of MSBuild. For Windows users who have Visual Studio installed, this means you will need to have Visual Studio 16.11 or newer installed. For MacOS and Linux users who have Mono installed, this means you will need to set You can also use the .NET 6 build of OmniSharp which runs on the .NET 6 SDK. See instructions above. What's new in 1.24.2
What's new in 1.24.1
What's new in 1.24.0
Emmet support in Razor filesTo enable emmet support, add the following to your settings.json:
Semantic HighlightingThe C# semantic highlighting support is in preview. To enable, set To really see the difference, try the new Visual Studio 2019 Light and Dark themes with semantic colors that closely match Visual Studio 2019. Supported Operating Systems for DebuggingCurrently, the C# debugger officially supports the following operating systems:
Found a Bug?To file a new issue to include all the related config information directly from vscode by entering the command pallette with Ctrl+Shift+P
(Cmd+Shift+P on macOS) and running Alternatively you could visit https://github.com/OmniSharp/omnisharp-vscode/issues and file a new one. DevelopmentFirst install:
To run and develop do the following:
To test do the following: LicenseCopyright © .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/OmniSharp/omnisharp-vscode and licensed under the MIT license. Code of ConductThis project has adopted the code of conduct defined by the Contributor Covenant to clarify expected behavior in our community. For more information see the .NET Foundation Code of Conduct. Contribution License AgreementBy signing the CLA, the community is free to use your contribution to .NET Foundation projects. .NET FoundationThis project is supported by the .NET Foundation. |