Equivalent of #region for C++

前端 未结 10 1239
無奈伤痛
無奈伤痛 2020-12-24 04:17

What\'s the C++ equivalent of #region for C++ so I can put in custom code collapsible bits and make my code a little easier to read?

10条回答
  •  暗喜
    暗喜 (楼主)
    2020-12-24 05:10

    Just an addition to other answers. The region definition varies from IDE to IDE.

    For Mac development in Xcode you can use a pragma:

    #pragma mark
    

提交回复
热议问题