How to define or support a code language on Visual

2020-08-01 05:02发布

问题:

I just got Visual Studio, and every time I try running the code, a message pops up and says "code language not supported or defined. This happens with any language I try to use. How do I fix it?

回答1:

In the bottom right corner of the window notice where it says "plain text", Click this and you should see all the available language options. It's probably set to autodetect right now.



回答2:

Read the language support page for MS Visual Studio: https://code.visualstudio.com/docs/languages/overview

You can define a languages in the files.associations setting.

If you haven't setup language support: https://code.visualstudio.com/docs/setup/setup-overview