Auto-completion source for C# keywords to be used with the auto-complete package
The auto-complete
package
use-package
install via straight
:
(use-package auto-complete-csharp
:straight (
:host github
:repo "Zacalot/auto-complete-csharp")
:hook
(csharp-mode . (lambda ()
(setq ac-sources '(ac-source-csharp))
(auto-complete-mode))))
Add ac-source-csharp
to your ac-sources
variable while in csharp-mode
Example:
(require 'auto-complete-csharp)
(add-hook 'csharp-mode-hook #'(lambda ()
(setq ac-sources '(ac-source-csharp))
(auto-complete-mode)))
- Autocompletion for C# keywords with light documentation
LSP servers like eglot
grant auto-completion for everything else fine.
As a result, this package is only useful if you find that LSP servers for C# run too slowly to have them prompt auto completion as you type, as is the case for me when working on Windows. So I use this package to have simple and fast completion for keywords without any LSP server lag. Feel free to extend this yourself if you need anything else.