How to

indent text in console applications

Published: 25. November 2011 | Updated: 25. November 2011
License: Microsoft Public License (MS-PL)
Categories: Consoles
Tags: C# Console Text
Was this snippet helpful for you? YESYES / NONO

Snippet shows how to indent text in console applications using the second part of format definition: {0,-10} and {1,10}
Console.WriteLine("Column1: {0,-10} Column2: {1,10}", 156497, 790415);
Console Output:
Column1: 156497     Column2:     790415
Send us feedback about this snippet »



Related Snippets: