Official C# support for Visual Studio Code (powered by OmniSharp)
Перейти к файлу
Akshita Agarwal 93d69f8681 Modify the sources for the instrumentation 2019-02-05 17:34:09 -08:00
.travis Add log folding in Travis CI 2017-11-17 00:34:43 -08:00
.vscode add a compile dev script 2019-02-05 16:24:38 -08:00
RuntimeLicenses Mark the C# extension as non-preview (#2220) 2018-04-27 13:03:36 -07:00
images Add C# icon to package 2016-03-10 15:38:14 -08:00
scripts Fix RemoteProcessPicker (#1373) 2017-04-11 10:45:36 -07:00
snippets Update snippets to proper snippet syntax 2017-06-27 16:07:58 -07:00
src Use the event type instead of name 2019-02-05 15:02:14 -08:00
tasks Modify the sources for the instrumentation 2019-02-05 17:34:09 -08:00
test update 2019-01-30 15:33:56 -08:00
typings Divide the package manager into separate components (#2188) 2018-04-24 14:29:51 -07:00
.editorconfig Update .editorconfig JSON rules (#2063) 2018-02-27 09:28:31 -08:00
.gitignore Set up things in development mode 2019-01-31 19:13:26 -08:00
.travis.yml Modify the sources for the instrumentation 2019-02-05 17:34:09 -08:00
CHANGELOG.md Update changelog 2019-01-28 14:34:06 -08:00
ISSUE_TEMPLATE Add github issue template 2016-06-01 16:57:19 -07:00
LICENSE.txt license files 2015-12-03 11:31:12 +01:00
README.md Clean up readme 2018-11-29 07:58:07 -08:00
ThirdPartyNotices.txt Remove third-party notice for old grammar 2017-01-10 15:47:26 -08:00
codecov.yml Eliminate Thennable<any> (#2163) 2018-04-09 11:16:00 -07:00
debugger-launchjson.md debugger-launchjson.md: console related suggestions from recent issues 2018-08-14 16:17:13 -07:00
debugger.md Add ConfigurationProvider API, ${workspaceRoot} -> ${workspaceFolder} (#1801) 2017-11-03 11:24:17 -07:00
gulpfile.ts Improvements to launch.json/tasks.json 2019-01-07 11:17:56 -08:00
mocha.opts Verify vsix size before release (#2144) 2018-03-28 18:14:04 -07:00
offline.vscodeignore Add the node modules to vscode ignore 2019-02-05 15:22:25 -08:00
package-lock.json Use the event type instead of name 2019-02-05 15:02:14 -08:00
package.json add a compile dev script 2019-02-05 16:24:38 -08:00
release.vscodeignore Add the node modules to vscode ignore 2019-02-05 15:22:25 -08:00
test-plan.md Update Razor Test Plan to include Blazor/Legacy Razor and project information. 2018-10-18 17:39:35 -07:00
tsconfig.json tsconfig.json: noUnusedLocals, noFallThroughCaseInSwitch, tslint.json: promise-function-async (#2162) 2018-04-09 09:30:10 -07:00
tslint.json Add the node modules to vscode ignore 2019-02-05 15:22:25 -08:00
wallaby.js Add mocha+wallaby tests (#2091) 2018-03-05 16:08:00 -08:00
webpack.config.js Update to tasks 2.0 and use the development mode of webpack for extension debugging 2019-02-05 16:15:31 -08:00

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

What's new in 1.17.0

  • Added preview Razor (cshtml) language service with support for C# completions and diagnostics.
  • Added omnisharp.minFindSymbolsFilterLength setting to configure the number of characters a user must type in for "Go to Symbol in Workspace" command to return any results
  • Added a command - "CSharp: Start authoring a new issue on GitHub" to enable the users to file issues on github from within the extension with helpful config information from their system

See our change log for more detail.

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: Start authoring a new issue on GitHub 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.

Debugging

The C# extension now supports basic debugging capabilities! See http://aka.ms/vscclrdebugger for details.

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

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.