Commenting blank lines

蹲街弑〆低调 提交于 2019-12-24 00:58:38

问题


When commenting multiple lines in vs-code using ctrl + /, is there any way to comment the blank lines in the selection too.

Example, if I have the following code,

def A():
    line1

    line2

When all these lines are selected and commented using ctrl + /, I want the blank line to get commented also, like

# def A():
#     line1
#      
#     line2

instead of:

# def A():
#     line1

#     line2

来源:https://stackoverflow.com/questions/52919515/commenting-blank-lines

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!