Aligning console output without string.Format mess? String interpolation supports alignment.
Basic Alignment:
var name = "John";
var age = 30;
Console.WriteLine($"{name,10} | {age,5}");
// Output: " John | 30"
// Right-aligned, 10 chars for name, 5 for age
Left-Align with Negative:
Console.WriteLine($"{name,-10} | {age,-5}");
// Output: "John | 30 "
Combined with Formatting:
var price = 1234.5;
Console.WriteLine($"{price,10:C2}");
// Output: " $1,234.50"
