Make <summary> comments with single line comment into one line Search for: ^(\s*/// )\<summary\>\s*\r?\n\s*\1(.+\S)\r?\n\s*\1\</summary\> Replace with: $1<summary> $2 </summary>