Feb
14

Unindent in Expression Blend

posted on 14 February 2011 in programming

Warning: Please consider that this post is over 12 years old and the content may no longer be relevant.

Unindenting in Expression Blend drove me mad, I just couldn’t get it to work. Today I figured out why.

The code I am copying from Visual Studio uses spaces for indentation, in Blend I was using tabs, this means when I paste code from VS, Blend doesn’t see any tabs to ‘unindent’.

Simple solution - make sure your Visual Studio indentation settings match your Blend settings.

Expression Blend indent settings

1. Expression Blend indent settings

Visual Studio indent settings

2. Visual Studio indent settings