简体   繁体   中英

How to add a JavaScript item to a Visual Studio Solution

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.

在此处输入图片说明

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.

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