Tony_Henrich
Tony_Henrich

Reputation: 44075

How to remove line breaks after <td> in Visual Studio?

Line breaks after <td> tags in aspx pages cause line breaks to be output in the html causing text to expand into multi lines.

Is there a way in Visual Studio, Resharper or online formatter which removes these type of line feeds? I don't want to remove every single line feed.. just the ones after<td>?

Upvotes: 0

Views: 1334

Answers (2)

zdd
zdd

Reputation: 8727

Try using Regex in Find-and-Replace in Visual Studio.

here \r?\n match a line break

enter image description here

Upvotes: 2

benathon
benathon

Reputation: 7633

You could open your source files in SublimeText, do a find->replace. Enable regular expressions (the .* button) and then use these values:

find: \n replace:

Sorry I don't have a VisualStudio related solution

Upvotes: 0

Related Questions