1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-01-23 22:40:04 +08:00
SpaceVim/docs/layers/lang/csharp.md
2021-06-21 20:39:29 +08:00

2.0 KiB

title description
SpaceVim lang#csharp layer csharp language layer, including syntax highlighting, asynchronous code runner.

Available Layers >> lang#csharp

Description

This layer is for csharp development.

Install

To use this configuration layer, update the custom configuration file with:

[[layers]]
  name = "lang#csharp"
  highlight_types = 0

When opening a cs file for the first time, it will popup a window and ask whether install the OmniSharp server or not, enter 'Y' to confirm.

If you choose "coc" as your auto completion engine, you must run ":CocInstall coc-omnisharp" to install the extension.

Key bindings

Key Binding Description
SPC l b compile the project
SPC l f format current file
SPC l d show doc
SPC l e rename symbol under cursor
SPC l g g go to definition
SPC l g i find implementations
SPC l g t find type
SPC l g s find symbols
SPC l g u find usages of symbol under cursor
SPC l g m find members in the current buffer
SPC l c f fix using
SPC l c a contextual code actions
SPC l c c find all code errors/warnings for the current solution
SPC l s r reload the solution
SPC l s s start the OmniSharp server
SPC l s S stop the OmniSharp server