Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Python new file option missing from VS Code "New File..."

I have been using VS Code for around a month or so and the "New File..." option was giving the new Python file option until today when it randomly stopped. See this image for context.

This is quite annoying as I now have to create a text file and end the name in .py rather than it appending .py by itself.

For context, I am using an Intel MacBook Pro from 2018.

like image 707
Adam Avatar asked Aug 20 '26 18:08

Adam


1 Answers

Select File > New File > Text File (Built-in)

Then, on the first line of the newly created file, click Select a Language, then scroll down the list, and finally select Python.

like image 59
Carlos Alvares Avatar answered Aug 22 '26 09:08

Carlos Alvares



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!