Before pasting a block of code, all common padding is stripped, but relative indentation is preserved.
I needed this because C# tends to have a lot of indentation if the interesting code happens to be already nested deep in some namespace/class/function. By trimming the common white space, the code is much easier to read on a cell phone with limited space (less need for horizontal scrolling).
For example, copying and pasting:
param.MetaRequest = new BoxMetaRequest[]
{
new BoxMetaRequest()
{
Name = "Frame",
}
}
Becomes:
param.MetaRequest = new BoxMetaRequest[]
{
new BoxMetaRequest()
{
Name = "Frame",
}
}
Checklist:
Please replace the space inside the brackets with an x and fill out the ellipses if the following items apply:
Description
Before pasting a block of code, all common padding is stripped, but relative indentation is preserved. I needed this because C# tends to have a lot of indentation if the interesting code happens to be already nested deep in some namespace/class/function. By trimming the common white space, the code is much easier to read on a cell phone with limited space (less need for horizontal scrolling).
For example, copying and pasting:
Becomes:
Checklist:
Please replace the space inside the brackets with an x and fill out the ellipses if the following items apply: