public static string[] GetAllLines(this IVsTextLines lines) { return(lines.GetAllText().Split( new[] { "\r\n", "\r", "\n" }, StringSplitOptions.None )); }