skip to Main Content

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

2

Answers


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

    Login or Signup to reply.
  2. 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"
    
    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search