如何在C#项目中为js文件使用js格式 [英] How can I use js formatting for js file in a C# project
本文介绍了如何在C#项目中为js文件使用js格式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我将Visual Studio用作Unity 3D的外部编辑器.我通常用C#编写脚本,但是一些外部资产是用Javascript编写的...如何使Visual Studio知道该文件不必格式化为C#格式,而可以格式化为Javascript格式?我的意思是错误检查和语法突出显示.
非常感谢您的帮助!
Lusvardi Gianmarco
Hi,
I''m using Visual Studio as an external editor for Unity 3D. I usually write scripts in C#, but some of the external assets are written in Javascript... How can I make Visual Studio know that the file has not to be formatted as a C# one, but as a Javascript one? I mean error checking and syntax highlighting.
Thanks a lot for your help!
Lusvardi Gianmarco
推荐答案
在Visual Studio中使用Resharper
Use Resharper with Visual Studio
这篇关于如何在C#项目中为js文件使用js格式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文