yierstem
yierstem

Reputation: 2067

Autocomplete only for tab and enter

How could I disable autocompleting for this situation:

Pressing ( after Rate autocomplets with DeviceRotationRate as displayed:

I only want to use tab or/and enter for autocompleting, so I will know what to expect.

Upvotes: 21

Views: 10343

Answers (2)

Muhammad Yasirroni
Muhammad Yasirroni

Reputation: 2137

To accept tab but not accept enter, use:

"editor.acceptSuggestionOnEnter": "off",

as explained here.

Useful since you use enter in python to change line.

You can write that settings on >Preferences: Open User Settings (JSON) (using CTRL + SHIFT + P and fill >Preferences: Open User Settings (JSON))

Upvotes: 7

Tony
Tony

Reputation: 848

The setting that turned this behavior off for me was:

"editor.acceptSuggestionOnCommitCharacter": false

You can find it in preferences - configuration - suggestions

enter image description here

Upvotes: 28

Related Questions