0

I have written the following code in V.S. Code on MacOS:-

import pygame

pygame.init()

screen = pygame.display.set_mode((800,600))

But, it the Material Icon Theme in V.S. Code doesn't highlight the init() and other pygame methods as expected! Previously, I had edited the Settings.json file in V.S. Code by adding the following lines to eliminate the Module 'pygame' has no 'init' member error! Is this causing the issue of not highlighting the pygame methods in V.S. Code? Any help would be highly appreciated! Thanks for the help:)

**Changes made in Settings.json file in V.S. Code**

"python.linting.pylintArgs": [
    "--extension-pkg-whitelist=pygame"
    "--errors-only",
    "--generated-members=numpy.* ,torch.* ,cv2.* , cv.*"
    ],
Kingsley
  • 12,897
  • 5
  • 28
  • 50
Pressing_Keys_24_7
  • 1,533
  • 2
  • 5
  • 21
  • 1
    I think the Material Icon Theme is only for changing the icons for your folder structure. You could try getting an extension called "pylance". It offers better syntax highlighting than "jedi" which is the default. – SaladHead Jan 30 '21 at 18:46
  • 1
    No problem, you're welcome. – SaladHead Jan 30 '21 at 19:23

0 Answers0