简体   繁体   English

在webmatrix 3中自动完成

[英]Auto complete in webmatrix 3

Webmatrix 3 has the intelisense feature that enables it to autocomplete tags and stuffs . Webmatrix 3具有intelisense功能,可以自动完成标签和填充物。 But once in a tutorial i saw that it was able to even auto complete some style options which were from seperate files 但是在教程中,我看到它甚至能够自动完成一些来自单独文件的样式选项

ex : 例如:

i have an index.html and i have bootstrap at css/bootstrap.css 我有一个index.html,我在css / bootstrap.css中有引导程序

inside it 在里面

<html> 



.
.
// when i type 
// <button type="button" class="btn 

//i want it  to have 

 <button type="button" class="btn btn-default // and much more options 
</html> 

how do u enable this feature ? 您如何启用此功能? or doesn anyone know any other editor which can do this ? 还是没有人知道其他可以执行此操作的编辑器? thanks in advance 提前致谢

Nope, WebMatrix only allows you to use the code inside your App_Code folder such as the Class Files or NameSpaces you create yourself. 不,WebMatrix仅允许您使用App_Code文件夹内的代码,例如您自己创建的类文件或命名空间。 For example if you create this file 例如,如果您创建此文件

using NameSpace; /* any of the */

public class someClass {
  public int someMethod (int[] params) {
    /* code for the method */
  }
}

Now when you'll write new someClass() you'll be prompted to use the method ie someMethod() and the parameters would be told to you. 现在,当您编写new someClass() ,系统会提示您使用方法someMethod()并且会告诉您参数。

But remember, this won't work for any other folder that you're using. 但是请记住,这不适用于您正在使用的任何其他文件夹。 Such as Scripts, Content etc. The Script part has the JavaScript files that you include, so it won't allow you to use features that a third party such as jQuery would let you handle. 例如脚本,内容等。“脚本”部分包含您包含的JavaScript文件,因此它不允许您使用第三方(如jQuery)允许您处理的功能。 You're more likely to write them all yourself. 您更有可能自己编写它们。 But the folders that are created or are generally for ASP.NET Web Pages, for example: App_Code , App_Data , you can access them all by using the IntelliSense. 但是创建或通常用于ASP.NET网页的文件夹,例如: App_CodeApp_Data ,您可以使用IntelliSense来访问它们。

New versions of WebMatrix might also let you to use this feature for all the folders. 新版本的WebMatrix可能还允许您对所有文件夹使用此功能。 But that would be hard enough for the developers as they would have to look for the entire project for some JS file or CSS file and then get all the methods and properties. 但这对于开发人员来说已经足够困难,因为他们将不得不在整个项目中寻找一些JS文件或CSS文件,然后获取所有方法和属性。

Your file (Twitter Bootstrap) ain't gonna get integrated into WebMatrix just as jQuery or any other third party file. 您的文件(Twitter Bootstrap)将不会像jQuery或任何其他第三方文件那样被集成到WebMatrix中。 WebMatrix shows you for the pure programming language such as CSS, JavaScript, ASP.NET or any of the code you include in the bin or App_Code or App_Data folder, I am not sure about App_Data as that includes the Databases and you're not gonna use that folder without Connecting to the Database. WebMatrix向您显示了纯编程语言,例如CSS,JavaScript,ASP.NET或binApp_CodeApp_Data文件夹中包含的任何代码,我不确定App_Data是因为它包含数据库,并且您不会使用该文件夹而不连接数据库。

You're still at luck: http://webmatrix.uservoice.com/forums/128313-webmatrix-suggestions Suggest this at the link I have provided you with. 您仍然很幸运: http: //webmatrix.uservoice.com/forums/128313-webmatrix-suggestions在我提供的链接中建议您这样做。 And you might get this option in the next version of the WebMatrix. 您可能会在下一版的WebMatrix中获得此选项。

实际上,我发现了另一个IDE 喷气脑,它具有我期望的功能...它的再见webmatrix :)

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

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