mitaki28 / vscode-clang

Completion and Diagnostic for C/C++/Objective-C using Clang
MIT License
128 stars 24 forks source link

Suggestions after '>' #8

Closed KyleMayes closed 8 years ago

KyleMayes commented 8 years ago

Opening the suggestions list after typing > makes it rather annoying to type templates because hitting return selects the first entry in the list rather than create a newline as one would expect.

It would be nice if this was disabled or at least made an option. Thanks for the great plugin!

vscode-c

csholmq commented 8 years ago

Workaround (https://github.com/Microsoft/vscode-go/issues/103#issuecomment-183390915)

keybindings.json

{
    "key": "enter",
    "when" : "editorTextFocus && suggestWidgetVisible"
}
mitaki28 commented 8 years ago

@KyleMayes I have add new configuration clang.completion.triggerChars. Now, we can disable completion on hitting > key.

csholmq commented 8 years ago

Also, with https://github.com/Microsoft/vscode/commit/1fa8bcdf9db61e6ed65929ff956ac6c1e10ca67c you now have the option editor.acceptSuggestionOnEnter: false to disable Enter as a user. Will be available in next VSCode release.