dotnet-script / dotnet-script

Run C# scripts from the .NET CLI.
MIT License
2.76k stars 168 forks source link

Add syntax highlight and code completion to CLI #656

Closed iSeiryu closed 2 years ago

iSeiryu commented 2 years ago

Is it possible to add those features? Even at some basic level. I found this tool that already implemented those features https://github.com/waf/CSharpRepl. It uses https://github.com/waf/PrettyPrompt to do its CLI magic.

It could be an additional flag to load that functionality:

dotnet-script -i --syntax-highlight --code-completion

If there is a possibility of implementing either of those things we could split them into 2 separate issues.

seesharper commented 2 years ago

This is out of the scope of this project I am afraid. We use Omnisharp for providing language support like Intellisense.

amine-aboufirass commented 1 year ago

@seesharper why would this be out of scope? Omnisharp is a language server and PrettyPrompt a command line prompt that provides syntax highlighting/intellisense. They fulfill different roles... couldn't PrettyPrompt use the information retrieved from Omnisharp and provide a richer command line experience for those who prefer not to open vs code for simple one-off scripting?

iSeiryu commented 10 months ago

@amine-aboufirass I switched to https://github.com/waf/CSharpRepl. It's fast and has those features enabled by default.