在 VSCode 中禁用。(点)上的自动完成

示例: 尝试键入 return res.data

键入 .后,它自动完成到 return resizeBy

已经关闭了自动完成进入,并不想完全关闭 editor.quickSuggestions,因为我仍然喜欢菜单上(只是没有接管太多)。

在网上根本找不到这方面的信息。

16015 次浏览

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.
  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)