waf / CSharpRepl

A command line C# REPL with syntax highlighting – explore the language, libraries and nuget packages interactively.
https://fuqua.io/CSharpRepl/
Mozilla Public License 2.0
2.95k stars 112 forks source link

should not accept the intelligen suggestion while hit space #352

Open heartacker opened 8 months ago

heartacker commented 8 months ago

Version

newest

What happened?

pleaz do not accept suggest while hit space, most we use enter/tab while we want accept the suggetion image

kindermannhubert commented 8 months ago

Please see #148. This matches Visual Studio behavior and is wanted.

heartacker commented 7 months ago

could it please add a option,This is quite necessary. thanks

heartacker commented 7 months ago

涂鸦_Screenshot_2024-03-31-11-06-51-167_GitHub.png

Yes, this is really annoying.

waf commented 7 months ago

Hi @heartacker, a few questions to better understand your use case:

  1. We match the Visual Studio behavior -- we have no plans to change this. Do you also use a custom Visual Studio config?
  2. Why are you pressing space if you don't want it to accept the current suggestion? Can you give us an example workflow.

I am open to a PR that updates this, though it should allow for general configuration and not be specific to the "space" key. See the "commitCompletion" area of the code to get started.

heartacker commented 7 months ago

hi ,@waf Thank you and

  1. I use Both VS and VSCode, and Preferred vsode,
  2. [Import] I believe space is a character, so space key is not a function key but character key
  3. we have Tab and Enter to accept the suggestion, and too much to add space too
  4. if i just want to input a b, we get this
heartacker commented 4 months ago

@waf Hi,Is there a way to cancel the space suggestion through the configuration