Skip to content
Official C# support for Visual Studio Code (powered by OmniSharp)
TypeScript C# Other
Branch: master
Clone or download
This branch is 20 commits ahead, 3 commits behind OmniSharp:master.

Latest commit

Fetching latest commit…
Cannot retrieve the latest commit at this time.

Files

Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.github/workflows Update artifact name Feb 25, 2020
.travis
.vscode Upgrade OmniSharp to 1.35.2 May 21, 2020
RuntimeLicenses Mark the C# extension as non-preview (OmniSharp#2220) Apr 27, 2018
images Add C# icon to package Mar 10, 2016
omnisharp
scripts Fix RemoteProcessPicker (OmniSharp#1373) Apr 11, 2017
snippets MOD Use filename instead of ClassName Oct 31, 2019
src Fix typescript problems May 22, 2020
tasks Format source to make it consistent Apr 20, 2020
test Address feedback from peer review May 21, 2020
themes Fix string puctuation color May 22, 2020
typings Update to the released semantic token apis. May 11, 2020
.editorconfig
.gitignore Merge remote-tracking branch 'main/master' May 21, 2020
.travis.yml Add integration test for SemanticTokensProvider May 11, 2020
CHANGELOG.md Bump version to 1.22.0 May 21, 2020
ISSUE_TEMPLATE Add OmniSharp log to Issue template May 15, 2020
LICENSE.txt Updated license to include .net foundation Mar 29, 2020
README.md Bump version to 1.22.0 May 21, 2020
ThirdPartyNotices.txt Remove third-party notice for old grammar Jan 10, 2017
codecov.yml Eliminate Thennable<any> (OmniSharp#2163) Apr 9, 2018
debugger-launchjson.md Update debugger-launchjson.md to use COMPlus_ReadyToRun (OmniSharp#3442) Dec 5, 2019
debugger.md Update debugger.md (OmniSharp#3609) Feb 26, 2020
gulpfile.ts Format source to make it consistent Apr 20, 2020
mocha.opts Verify vsix size before release (OmniSharp#2144) Mar 29, 2018
offline.vscodeignore Delete the razor folder before trying to create offline package Feb 8, 2019
package-lock.json Fix typescript problems May 22, 2020
package.json Merge remote-tracking branch 'main/master' May 22, 2020
release.vscodeignore Delete the razor folder before trying to create offline package Feb 8, 2019
test-plan.md Apply suggestions from code review May 21, 2020
tsconfig.json Fix for invalid json at tsconfig.json Dec 1, 2019
tslint.json Update OmniSharp to 1.34.8 Nov 21, 2019
wallaby.js Add mocha+wallaby tests (OmniSharp#2091) Mar 6, 2018
webpack.config.js Set dirname to false Mar 21, 2019

README.md

C# for Visual Studio Code (powered by OmniSharp)

Master Release
Master Build Status Release Build Status

Wallaby.js

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.

Get Started Writing C# in VS Code

What's new in 1.22.0

What's new in 1.21.18

What's new in 1.21.17

  • Updated Razor support (PR:#3696)
  • Razor support for <text> tag completions.
  • Ability to restart the Razor Language Server to activate changes to the razor.trace level.
  • Bug fixes and performance improvements.
  • Support for <RunAnalyzers /> and <RunAnalyzersDuringLiveAnalysis /> (PR: omnisharp-roslyn/#1739)
  • Add typeparam documentation comments to text description (#3516, PR: omnisharp-roslyn/#1749)
  • Tag #region blocks appropriately in the block structure service (#2621, PR: omnisharp-roslyn/#1748)

Emmet support in Razor files

To enable emmet support, add the following to your settings.json:

"emmet.includeLanguages": {
    "aspnetcorerazor": "html"
}

Semantic Highlighting

The C# semantic highlighting support is in preview. To enable, set editor.semanticHighlighting.enabled and csharp.semanticHighlighting.enabled to true in your settings. Semantic highlighting is only provided for code files that are part of the active project.

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 Debugging

  • 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

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 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.

Development

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.

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/OmniSharp/omnisharp-vscode and licensed under the MIT license.

Code of Conduct

This 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 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.

You can’t perform that action at this time.