How do I associate a file extension with a language in VS2022?

Derek Dongray 21 Reputation points
2025-01-15T10:27:45.59+00:00

If I have a group of files in a project/solution with a particular file extension, how do I tell VS2022 what language it is for highlighting and Intellisense?

Specifically, how do I indicate that .SC files are Python scripts? In VSCode, it's simple.

Developer technologies | Visual Studio | Other
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.