Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

QtCreator - Folding Functions with comments?



  • I currently still mainly use Emacs for editing. One reason is the folding mode which i became used to. It can fold function including the comment block before, so that you see only one line for each function, e.g.:

    @
    // {{{ getText

    /*! Describes getText()

    • \param
    • \return
      */

    QString getText() {
    return itsText;
    }

    // }}}
    @

    is folded into one line

    @
    // {{{ getText...
    @

    Can I configure QtCreator somehow to fold the complete function with comments?



  • u can do it if you use comments inside starting of function, there is no such other way



  • But those comments are, AFAIK, no parsed by documenation generators. So IMHO, it would be nice feature to have.


Log in to reply