Disable Autocomplete on . (dot) in VSCode

Visual Studio-CodeAutocompleteVscode Settings

Visual Studio-Code Problem Overview


Example: trying to type return res.data

after typing the . it autocompletes to return resizeBy.

Have already turned off autocomplete on enter, and don't want to turn off editor.quickSuggestions completely as I still like the menu coming up (just not taking over too much).

Can't find very much about this online at all.

Visual Studio-Code Solutions


Solution 1 - Visual Studio-Code

place this in your settings.json file:

"editor.acceptSuggestionOnCommitCharacter": false,

To open settings.json file:

  1. cmd + , or ctrl +,
  2. scroll down until you see Files: Associations
  3. Click on edit in settings.json
  4. paste the code above and save.

Solution 2 - Visual Studio-Code

  1. open vs code editor.
  2. under left hand corner => click setting
  3. "text editor" => suggestion.
  4. uncheck the Accept Suggestion On Commit Character (it could be placed on the first line of suggestion)

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
Questiondan674View Question on Stackoverflow
Solution 1 - Visual Studio-CodeNick DariaView Answer on Stackoverflow
Solution 2 - Visual Studio-CodexiaonanView Answer on Stackoverflow