zoukankan      html  css  js  c++  java
  • Netbeans自定义折叠代码

    只需要在模块开始注释以//<editor-fold>开始,

    在模块结束行以 //</editor-fold>结束即可

    Can I Create Custom Code Folds?

    Apart from usual folds, you can define custom folds. To add your custom fold, type in two special comments as shown in this example:

    // <editor-fold>
       Your code goes here...
    // </editor-fold>
    

    You may define the default description of a collapsed fold by adding a "desc" tag:

    // <editor-fold desc="This is my super secret genius code.">
       Your code goes here...
    // </editor-fold>
    

    You may set a fold to be collapsed by default by adding a "defaultstate" tag:

    // <editor-fold defaultstate="collapsed">
       Your code goes here...
    // </editor-fold>
    

    Please note that the above examples are for java language. In other languages custom folds may not be supported or you may have to use different characters for marking line comments. Also <editor-fold/> element syntax is not a real XML, we use a simple regex to find your custom folds in a document, which means that there are limitations in the syntax. The most important one is that attributes may only be combined in this specific order: defaultstatedesc.

  • 相关阅读:
    字符串对比
    时间转换
    fJ字符串
    Codeforces 1526D
    HDU
    树链剖分入门
    AcWing 252. 树(点分治模版题)
    HDU-4487 Maximum Random Walk(概率dp)
    acwing 316 减操作(dp)
    CodeForces
  • 原文地址:https://www.cnblogs.com/endtel/p/5690642.html
Copyright © 2011-2022 走看看