add code in comment¶ \code{.cpp} class Cpp {}; \endcode clion还支持这种写法: @code int main() { return 0 } @code与代码之间不能空行。