EDDYMENS

How To Stop VS Code Autocomplete When Pressing Space

If like me you find VS Code inserting autocomplete code whenever you hit space to actually create space irritating, then this might help.

Fix

  • Open Settings: Press Ctrl + , (Windows/Linux) or Cmd + , (Mac).
  • Search: Type commit character into the search bar.
  • Locate Setting: Find the option labeled Editor: Accept Suggestion On Commit Character.
  • Disable: Uncheck the box.

Alternative: Project-Specific Setting

If you prefer to apply this change only to your current project rather than globally, create a .vscode folder in your project directory.

Inside that folder, create a settings.json file with the following code:

settings.json

01: { 02: "editor.acceptSuggestionOnCommitCharacter": false 03: }