What is the proper way to format code?

前端 未结 22 2140
没有蜡笔的小新
没有蜡笔的小新 2021-02-18 18:33

When I write code, I try to group lines of similar code together, then leave a blank line and write another block.

I believe this contributes to the neatness and readabi

22条回答
  •  一向
    一向 (楼主)
    2021-02-18 19:12

    Since we don't have an example of your personal idea of "logical" line spacing, we can't really say whether or not you deserved to be downgraded.

    I tend to group similar statements or steps in a sequence together before spacing (such as variable declarations, looping, etc.)

提交回复
热议问题