Home > Blockchain >  Visual Studio Code: .py option does not appear in the New File Menu with the Python Extension instal
Visual Studio Code: .py option does not appear in the New File Menu with the Python Extension instal

Time:09-13

Is there a way to make the .py option appear in the VS Code New File Menu? It used to appear when having the Python extension installed, however, something changed.

Please, see the menu image

CodePudding user response:

It is useless, just type name_file.py and press enter.

CodePudding user response:

Although the .py option never appeared on my machine, I've seen this problem several times. According to this question, maybe downgrading the vscode version can solve the problem.

My suggestion is to add the following configuration to settings,json so your vscode will default each new file to a python file.

    "files.defaultLanguage": "python"
  • Related