简体   繁体   中英

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.

If you are using the built-in Brackets editor, you will find some extensions under the file menu. 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.

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