mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-01-23 22:30:04 +08:00
2.0 KiB
2.0 KiB
title | description |
---|---|
SpaceVim lang#csharp layer | This layer is for csharp development |
Available Layers >> lang#csharp
Description
This layer is for csharp development.
Install
Layer
To use this configuration layer, update custom configuration file with:
[[layers]]
name = "lang#csharp"
OmniSharp Server
You must build the OmniSharp Server before using this layer's features.
After all plugins installed, cd to the directory $SPACEVIM_PLUGIN_BUNDLE_DIR/repos/github.com/OmniSharp/omnisharp-vim/server
(by default $HOME/.cache/vimfiles/repos/github.com/OmniSharp/omnisharp-vim/server
, and then run
xbuild
for macOS and linux, or
msbuild
for Windows.
For more information, please read this link.
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 s r |
reload the solution |
SPC l s s |
start the OmniSharp server |
SPC l s S |
stop the OmniSharp server |