[英]In visual Studio, when formating automatically, how to reduce block spacing to minimum?
You can try the following steps to reduce extra blank lines.您可以尝试以下步骤来减少额外的空行。
First, please use hot key Ctrl+H to open replace function box.首先,请使用热键 Ctrl+H 打开替换功能框。
Second, please select the code you want to format.其次,请选择您要格式化的代码。
Third, please choose Use regular expression
and Selection
.第三,请选择Use regular expression
和Selection
。
Finally, please input (?<=\\r\\n)\\r\\n
in the find box and click the Replace all.最后,请在查找框中输入(?<=\\r\\n)\\r\\n
并单击全部替换。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.