skip to Main Content

When I write C# code in VS Code and start typing some word and IntelliSense appears and focus on some suggestion I can press dot or space and this word appears in code.
But in python I strictly have to press Enter only if I want to get suggested word. Is it possible to make IntelliSense in Python behave like it behaves in C#?

2

Answers


  1. Try changing the following lines to your settings.json file

    "editor.acceptSuggestionOnCommitCharacter": true,
    "editor.acceptSuggestionOnEnter": "on",
    "editor.quickSuggestions": {
      "other": true,
      "comments": true,
      "strings": true
    }
    
    Login or Signup to reply.
  2. In addition to @DreamyPlayer’s answer, add the following line to settings.json (or rewrite it, if key editor.inlineSuggest.enabled exists):

    "editor.inlineSuggest.enabled": true
    
    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search