简体   繁体   English

如何使用intel xdk在javascript中实现区域/代码折叠?

[英]how to implement regions/code collapse in javascript using intel xdk?

我们如何使用intel xdk在javascript中使用区域/代码折叠,因为这将是易于管理的便捷方法,并使代码易于理解和编写。

You can always use your own editor with your XDK project files, it is not a requirement that you use the built-in editor, although there are a few features that require the built-in Brackets editor to work. 您始终可以将自己的编辑器与XDK项目文件一起使用,尽管使用了一些功能需要内置的Brackets编辑器,但不一定要使用内置的编辑器。

If you are using the built-in Brackets editor, you will find some extensions under the file menu. 如果使用内置的Brackets编辑器,则会在文件菜单下找到一些扩展名。 There is a "Code Folding" extension that I think is what you are looking for. 我认为您正在寻找“代码折叠”扩展。 Also, I highly recommend you install the various lint/hint extensions, they are very helpful for finding subtle issues with your code. 另外,我强烈建议您安装各种lint / hint扩展,它们对于发现代码中的细微问题非常有用。

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

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