How do you indent preprocessor statements?

前端 未结 5 1109
春和景丽
春和景丽 2021-02-03 23:21

When there are many preprocessor statements and many #ifdef cascades, it\'s hard to get an overview since normally they are not indented. e.g.

#ifdef __WIN32__
#         


        
5条回答
  •  别那么骄傲
    2021-02-04 00:15

    This question already has lots of valid answers. For people that want a visual image here it is.

    In visual studio go to options search for indent and select your language. In my case it is c++. As you toggle between the options visual studio will show you an example bellow.

提交回复
热议问题