Reputation: 159
When in VS Code I use auto completion the selected text appears with the highlighted cursor placement. This highlighting prevents VS Code from offering further suggestions.
How can I disable this highlighting? I want to be able to use autocomplete one after another without having to hit ESC to quit highlighting.
VS Code 1.44.0
Upvotes: 11
Views: 2260
Reputation: 531
The question was already answered by @Anton Solomin.Let me shed more light on it. Your problem is VS code auto-suggestion is not working when text is highlighted.
Below is the example of issue as you have mentioned in your question.
Reason> Some of your code snippet is preventing quick suggestion by VS code.
Solution> Just tell VS code that don't disable quick suggestion if some snippets askes you to do it.
How to implement solution>
Go to VScode settings page
In settings search bar type editor.suggest.snippetsPreventQuickSuggestions
Uncheck Controls whether an active snippet prevents quick suggestion
Now your VS code auto suggestion should work.
Upvotes: 6
Reputation: 159
// Controls whether an active snippet prevents quick suggestions. "editor.suggest.snippetsPreventQuickSuggestions": true,
Upvotes: 2
Reputation: 462
add editor.occurrencesHighlight
in the config file.
for more detail https://github.com/Microsoft/vscode/issues/5351#event-982256414
Upvotes: -1