vscode quickSuggestions not working with Python

Viewed 27

For example there are two functions f1 and f2

def f1(download_playlist):
    pass

def f2(download_playlist):
    print('download_playlist')

It is expected that after entering f1, the two download_playlists in f2 only need to enter the first few letters, and there will be download_playlist in the quick suggestion list, so that you don't have to type it from beginning to end every time

This setting doesn't work

  "editor.quickSuggestions": {
    "other": true,
    "comments": true,
    "strings": true
  },
  "editor.suggest.snippetsPreventQuickSuggestions": false,
1 Answers

Problem solved Need to add the following settings

  "[python]": {
    "editor.wordBasedSuggestions": true,
  },

Related