Master | Release |
---|---|
Welcome to the C# extension for Visual Studio Code! This extension provides the following features inside VS Code:
- Lightweight development tools for .NET Core.
- Great C# editing support, including Syntax Highlighting, IntelliSense, Go to Definition, Find All References, etc.
- Debugging support for .NET Core (CoreCLR). NOTE: Mono debugging is not supported. Desktop CLR debugging has limited support.
- Support for project.json and csproj projects on Windows, macOS and Linux.
The C# extension is powered by OmniSharp.
- Use the base filename instead of 'ClassName' in ctor snippet (PR:#3385)
- Added command to re-run code analysis on single project or all projects (PR:#3089)
- Updated Razor support (PR:#3445)
- Rename support
- Go to definition support
- Go to implementation support
- Find all references support
- CodeLens support
- Several mainline bug fixes
- Updated Razor grammar for better colorization (PR:#3448)
- Updated to MsBuild 16.4.0 (PR:omnisharp-roslyn/#1662)
- Line pragma is now respected in find references (omnisharp-roslyn/#1649, PR:omnisharp-roslyn/#1660)
- Do not set mono paths when running in standalone mode (omnisharp-vscode#3410, omnisharp-vscode#3340, omnisharp-roslyn/#1650, PR:omnisharp-roslyn/#1656)
- Fixed a bug where OmniSharp would crash on startup if the path contained
=
sign (omnisharp-vscode#3436, PR:omnisharp-roslyn/#1661) - Improved support for .NET Core 3.1
- Update Razor to work for 3.1 SDKs (PR:#3406)
- Support plugins configuration in omnisharp.json (PR:omnisharp-roslyn/#1615)
- Improved support for .NET Core 3.1
- Updated the embedded Mono to 6.4.0 (PR:omnisharp-roslyn/#1640)
- Improved support for .NET Core 3
- Fixed a bug that caused CS0019 diagnostic to be erroneously reported when comparing to
default
(omnisharp-roslyn/#1619, PR:omnisharp-roslyn/#1634) - Correctly respect request cancellation token in metadata service (omnisharp-roslyn/#1631)
- Improved support for .NET Core 3
- Fixed regression that caused "go to metadata" to not work (omnisharp-roslyn/#1624, PR: omnisharp-roslyn/#1625)
-
Currently, the C# debugger officially supports the following operating systems:
- X64 operating systems:
- Windows 7 SP1 and newer
- macOS 10.12 (Sierra) and newer
- Linux: see .NET Core documentation for the list of supported distributions. Note that other Linux distributions will likely work as well as long as they include glibc and OpenSSL.
- ARM operating systems:
- Linux is supported as a remote debugging target
- X64 operating systems:
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 CSharp: Report an issue
command. This will open a browser window with all the necessary information related to the installed extensions, dotnet version, mono version, etc. Enter all the remaining information and hit submit. More information can be found on the wiki.
Alternatively you could visit https://github.com/OmniSharp/omnisharp-vscode/issues and file a new one.
First install:
- Node.js (8.11.1 or later)
- Npm (5.6.0 or later)
To run and develop do the following:
- Run
npm i
- Run
npm run compile
- Open in Visual Studio Code (
code .
) - Optional: run
npm run watch
, make code changes - Press F5 to debug
To test do the following: npm run test
or F5 in VS Code with the "Launch Tests" debug configuration.
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.