简体   繁体   English

Visual Studio 2013 JS HTML模板

[英]Visual Studio 2013 JS HTML Template

before i reinstalled visual studio i had an option to choose a blank html/js only template. 在重新安装Visual Studio之前,我可以选择一个空白的html / js only模板。 There is still an option for a blank JS project but it's different and it seems like it's supposed for windows 8 store apps. 对于空白JS项目,仍然有一个选项,但它有所不同,似乎应该用于Windows 8商店应用程序。

I found a picture from a typescript template. 我从打字稿模板中找到了一张图片。 I had the same option for javascript: 我对javascript有相同的选择:

TypeScript HTML Template
(source: msdn.com ) (来源: msdn.com

Now it's gone and I'd like to have it back. 现在它已经不见了,我想找回来。 Maybe someone can help me out? 也许有人可以帮助我?

Thanks in advance 提前致谢

You have to restore the default project templates so as to fix your problem. 您必须还原默认的项目模板才能解决您的问题。

In the command prompt, navigate to the location of devenv.exe. 在命令提示符下,导航到devenv.exe的位置。 This file is located in <Visual Studio Installation Path>\\Common7\\IDE. 此文件位于<Visual Studio Installation Path>\\Common7\\IDE.

Note: If you are running Windows Vista or Windows 7, you must open the command prompt as an administrator 注意:如果您运行的是Windows Vista或Windows 7,则必须以管理员身份打开命令提示符。

Type "devenv /installvstemplates" and press Enter. 输入"devenv /installvstemplates" ,然后按Enter。

Note: If you are using an Express Edition of Visual Studio, type "<ExpressName>Express /installvstemplates" where <ExpressName> is either VB or VCS for Visual Basic and Visual C#, respectively. 注意:如果使用的是Visual Studio Express Edition,请键入"<ExpressName>Express /installvstemplates" ,其中<ExpressName>是Visual Basic和Visual C#的VB或VCS。

By default, templates installed together with the product are located in: 默认情况下,与产品一起安装的模板位于:

\VisualStudioInstallationDirectory\Common7\IDE\ItemTemplates\Language\Locale\
\VisualStudioInstallationDirectory\Common7\IDE\ProjectTemplates\Language\Locale\

For example, the following directory contains the Visual Studio project templates for English: 例如,以下目录包含英语的Visual Studio项目模板:

C:\VisualStudioInstallationDirectory\Common7\IDE\ItemTemplates\VisualBasic\1033\

Try to empty them first and then reinstall .If this procedure does not restore the default templates, reinstall Visual Studio. 尝试先清空它们,然后重新安装。如果此过程未还原默认模板,请重新安装Visual Studio。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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