Skip to content

Latest commit

 

History

History
28 lines (26 loc) · 1.13 KB

File metadata and controls

28 lines (26 loc) · 1.13 KB
name image header github
emacs
emacs.png
Omnisharp-Emacs
omnisharp-emacs

Short version

  1. On regular Emacs:
    • Enable the MELPA stable package archive. Use MELPA stable for official releases, or plain MELPA for development snapshots.
    • Install package with M-x package-install RET omnisharp RET
    • Configure your csharp-mode hook so it would enable omnisharp-mode.
    • Add these lines in your init.el to make omnisharp-mode enabled for your csharp files:
      (eval-after-load
          'company
          '(add-to-list 'company-backends 'company-omnisharp))
      (add-hook 'csharp-mode-hook 'omnisharp-mode)
    
  2. On Spacemacs:
    • Enable the csharp layer in your ~/.spacemacs
    • Restart
  3. Install the server with M-x omnisharp-install-server RET – follow instructions on minibuffer.
  4. Start the server with M-x omnisharp-start-omnisharp-server.
  5. You can also customize omnisharp with M-x customize-group RET omnisharp RET

Long version

  1. See here