Simple ways to disable parts of code

后端 未结 14 1141
误落风尘
误落风尘 2021-01-31 08:59

This isn\'t a typical question to solve a specific problem, it\'s rather a brain exercise, but I wonder if anyone has a solution.

In development we often need to disable

14条回答
  •  梦如初夏
    2021-01-31 09:15

    Sometimes I use the below trick to switch between two lazy comments.

    //* <-- remove the first slash
    [code block 1]
    /*/
    [code block 2]
    //*/
    

提交回复
热议问题