This article is reproduced from the blog Park, the original link: http://www.cnblogs.com/k-sharp/archive/2010/05/18/1738264.html [this link has expired]
Enter: Ctrl + H
Find what: ^: B * $ \ n
Replace:[Empty]
Look in: current document
Find option: use regular expressions
Click: replace allRegular Expression ^: B * $ \ n, ^ indicates the start of a row, $ indicates the end of a row, B indicates space or tab, and * Indicates 0 or more. \ N indicates a line break.
In the find what edit box, click the small arrow on the right to open the regular expression symbol table. Using the regular expression can almost meet most of the search requirements. The following is a complete list of symbols, which is selected from the msdn
Http://msdn.microsoft.com/en-us/library/aa293063 (vs.71). aspx
========================================================== ========================
Supplement:
Replace multiple blank rows with one row: ^: B * $ \ n + with \ n
Delete the blank line before}: ^ [: B \ n] * \}: B * With \}, select all the code, Ctrl-K, Ctrl-F format
This article is reproduced from the blog Park, the original link: http://www.cnblogs.com/k-sharp/archive/2010/05/18/1738264.html [this link has expired]
Enter: Ctrl + H
Find what: ^: B * $ \ n
Replace:[Empty]
Look in: current document
Find option: use regular expressions
Click: replace allRegular Expression ^: B * $ \ n, ^ indicates the start of a row, $ indicates the end of a row, B indicates space or tab, and * Indicates 0 or more. \ N indicates a line break.
In the find what edit box, click the small arrow on the right to open the regular expression symbol table. Using the regular expression can almost meet most of the search requirements. The following is a complete list of symbols, which is selected from the msdn
Http://msdn.microsoft.com/en-us/library/aa293063 (vs.71). aspx
========================================================== ========================
Supplement:
Replace multiple blank rows with one row: ^: B * $ \ n + with \ n
Delete the blank line before}: ^ [: B \ n] * \}: B * With \}, select all the code, Ctrl-K, Ctrl-F format