简体   繁体   中英

How do i get syntax highlighting for a Jslib file in Visual Studio

I tried the WebGL tutorial by Unity and everything worked well.

But the jslib file does not appear in Visuals Studio (I placed it in the "Plugins" folder), the JS syntax is not highlighted and also I don't have IntelliSense.

How do I get Visual Studio to recognize this file?

In Visual Studio: Tools -> Options -> Text Editor -> File Extension

Type jslib in the Extension field, and select JavaScript Editor in the Editor's dropdown field. Then, click on the Add button.

在 Visual Studio 中为 jslib 文件提供突出显示语法

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