Skip to content

VSC Not Detecting Python Through .py Extension #25699

@coreytoomey

Description

@coreytoomey

I'm a beginner who's trying to learn Python with an exercise book. I have Python installed on my computer and the Python, Pylance, Debugger and Environments extensions on VSC.

VSC won't detect Python. When I open a new file in the folder, it doesn't detect Python after I add the ".py" extension. It's reading it as Plain Text. I tried switching the language to Python but it doesn't show up in the list.

I also have the Python interpreter set to the Python file on my machine. I have the correct Path in my environmental variables. Any help would be appreciated. Ty

Image
Image
Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature-requestRequest for new features or functionalitytriage-neededNeeds assignment to the proper sub-team

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions