Back to Spacevim

SpaceVim lang#csharp layer

docs/layers/lang/csharp.md

2.4.01.8 KB
Original Source

Available Layers >> lang#csharp

<!-- vim-markdown-toc GFM --> <!-- vim-markdown-toc -->

Description

This layer is for csharp development.

Install

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

toml
[[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 BindingDescription
SPC l bcompile the project
SPC l fformat current file
SPC l dshow doc
SPC l erename symbol under cursor
SPC l g ggo to definition
SPC l g ifind implementations
SPC l g tfind type
SPC l g sfind symbols
SPC l g ufind usages of symbol under cursor
SPC l g mfind members in the current buffer
SPC l c ffix using
SPC l c acontextual code actions
SPC l c cfind all code errors/warnings for the current solution
SPC l s rreload the solution
SPC l s sstart the OmniSharp server
SPC l s Sstop the OmniSharp server