最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

How to add a JavaScript item to a Visual Studio Solution - Stack Overflow

programmeradmin3浏览0评论

In VS 2012 in Solution Explorer I right click on the Solution -> Add -> New item. In the list I see different items such as a text file, web page, style sheet, but there is no .js item. So far the only way for me is to create it in notepad++, save it and then add it as an existing item. Is there a faster way?

Thank you.

In VS 2012 in Solution Explorer I right click on the Solution -> Add -> New item. In the list I see different items such as a text file, web page, style sheet, but there is no .js item. So far the only way for me is to create it in notepad++, save it and then add it as an existing item. Is there a faster way?

Thank you.

Share Improve this question edited Nov 22, 2012 at 18:55 Alexander Popov asked Nov 22, 2012 at 18:48 Alexander PopovAlexander Popov 25.1k21 gold badges97 silver badges140 bronze badges
Add a ment  | 

1 Answer 1

Reset to default 6

Click the "Web" heading on the left bar of the window under "Visual C# Items". You will see "JavaScript File" appear. You could just as easily however add a file of any type and simply change the extension to .js.

发布评论

评论列表(0)

  1. 暂无评论