Click here to Skip to main content
65,938 articles
CodeProject is changing. Read more.
Everything / formatting

Formatting

formatting

Great Reads

by Trần_Tuấn_Anh
String concatenation is a fundamental operation in Java programming. Whether you’re building complex logic, formatting output, or generating dynamic content, knowing the best methods to concatenate strings efficiently can make a significant difference in performance and readability.
by honey the codewitch
A handy code snippet that can set indentation levels while rendering multipart documents with a TextWriter
by BernardIE5317
On certain occasions, Visual Studio does not indent as intended so here is an awk program which does the trick.
by jindrich.babica
Binding with respect to CurrentCulture

Latest Articles

by Trần_Tuấn_Anh
String concatenation is a fundamental operation in Java programming. Whether you’re building complex logic, formatting output, or generating dynamic content, knowing the best methods to concatenate strings efficiently can make a significant difference in performance and readability.
by honey the codewitch
A handy code snippet that can set indentation levels while rendering multipart documents with a TextWriter
by BernardIE5317
On certain occasions, Visual Studio does not indent as intended so here is an awk program which does the trick.
by jindrich.babica
Binding with respect to CurrentCulture

All Articles

Sort by Score

formatting 

by honey the codewitch
A handy code snippet that can set indentation levels while rendering multipart documents with a TextWriter
by BernardIE5317
On certain occasions, Visual Studio does not indent as intended so here is an awk program which does the trick.
by jindrich.babica
Binding with respect to CurrentCulture
by TweakBird
Common Mistakes Made by Programmers
by Ahmed_Mostafa
This is a useful tip for formatting numbers in C#.
by Pranay Rana
Convert DateTime string to DateTime variable
by bEGI23
Convert filesize (bytes) according to highest possible size scale (KB, MB, GB, TB, PB).
by Sumit Chawla
Custom String FormatWith using Reflection
by Matt T Heffron
This is an alternative for "Custom String FormatWith using Reflection"
by M@dHatter
PHP Magic String Builder with Append Format.
by Fatih P.
Here is the one i wrote sometime ago/* ---------------------------------------------------------------------------- * Teknober.com - All rights reserved * ---------------------------------------------------------------------------- * File Name : TStringBuilder.php * Section ...
by Debopam Pal
Export Advanced Excel 2007 Report
by Kouji Matsui
This library is simple and is a substitution of System.String.Format.
by Ben Kotvis
Pascal and Camel Case to display text conversion
by kiswa00
Why not take care of the first character before the loop, instead of checking it every time (not that it makes a big difference on modern hardware)? This also moves the char declaration out of the loop.private string createDisplayText(string propertyName){ if...
by Steve Roberson
This version treats the input string as an indexed string. The code is a little shorter.private string createDisplayText(string propertyName){ if (String.IsNullOrEmpty(propertyName)) { return String.Empty; } StringBuilder builder = new StringBuilder(); ...
by Bhis
Read XML File and change date contents
by Maxim Fedotov
Presents StringFormat methods with string (not integer) keys in 'format' string.
by Shweta Lodha
Some tips on Windows Phone Apps