简体   繁体   中英

How to enable syntax highlighting for CS files in Visual Code on OS X?

The title says it all. I've recently followed this offical Microsoft tutorial to build an ASP.NET web app on my MacBook, everything works fine (I can launch the web app) except for the syntax highlighting for .cs files. .js , .html and everything has syntax highlighted EXCEPT for C# files...How would I resolve this?

Here is my project.json file for your reference (Apologies for the external link, but the file is too huge and will break your eyes if posted here)

Adding to the comments: In VS Code

Press CTRL-P

Enter ext install csharp

Enjoy C# syntax highlighting

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM