-
Notifications
You must be signed in to change notification settings - Fork 676
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Space is a commit character #1524
Comments
@rasmus91: It is by design that autocomplete commits when SPACE is typed, as it does in Visual Studio. It shouldn't trigger on space, just commit the selected item in the completion item. I tried typing a few LINQ expressions and couldn't reproduce any typing issues with the setting you mentioned above. #1521 was also filed which reveals a problem specific to for-loops. Is that the same problem you're seeing? If not, could you provide more specific repro steps? |
Sure. Lets say I'm doing something like a linq statement. The Code should be the following:
The problem here would be that as i type: Well as far as i can tell. And I can't tell that that should be desirable behaviour. |
Great repro, thanks! In Visual Studio we add a bit of magic in cases like these to ensure that space doesn't commit in exactly these cases (namely, those cases where a lambda expression can be typed). I'll take a look. |
I haven't had occasion to use the fix outlined in #1548 as it's still in preview. Using the 'space key' for autocomplete is a personal bug-bear. Sure, in this case makes it hell to code in lambdas. Also though, it makes it hell to pre-code a section where variables, fields etc. haven't yet been defined. This is my preferred way to code, do the implementation and then define what's needed afterwards, similar to what Resharper allows for. Does the fix allow an option to disable the 'space key' or better yet, to select a list of autocomplete keys? |
Environment data
dotnet --info
output:.NET Command Line Tools (1.0.3)Steps to reproduce
leave
"[csharp]": { "editor.acceptSuggestionOnCommitCharacter": true }
Expected behavior
Autocomplete should trigger on '.' or ';' etc.
Actual behavior
It also triggers on space, making Linq statements, and intricate loop patterns absolute hell to write.
The text was updated successfully, but these errors were encountered: