Code inspection: Alignment value 'value' has a magnitude greater than 'magnitude limit' and may result in a large formatted string.
This inspection reports an interpolated string alignment component whose absolute value is very large. Large alignment values can allocate or produce unexpectedly huge formatted strings, so the compiler warns when the alignment magnitude is greater than the supported limit.
Example
var text = $"{value,-10000000}";
var text = $"{value,-20}";
How to fix
There is no dedicated quick-fix. The usual fix is to use a reasonable alignment value or remove the alignment altogether.
21 April 2026