Spacing options
Posted: Mon May 11, 2009 7:38 pm
When I write code, I like to visually breakout the code blocks slightly differently than the CodeFormatter options allow today. For example:
----------[ Begin ]----------
if (x == 1)
{
// Some code goes here
// Some more code
}
else
{
// Some code goes here
// Some more code goes here
}
// Code continues here.
----------[ End ]----------
The idea is to have extra blank lines after blocks of code. In this case it keep the "} else {" all grouped together on three lines, and the extra space at the end before the closing brace is there so code can automatically be inserted by positioning the caret there.
- Rick
----------[ Begin ]----------
if (x == 1)
{
// Some code goes here
// Some more code
}
else
{
// Some code goes here
// Some more code goes here
}
// Code continues here.
----------[ End ]----------
The idea is to have extra blank lines after blocks of code. In this case it keep the "} else {" all grouped together on three lines, and the extra space at the end before the closing brace is there so code can automatically be inserted by positioning the caret there.
- Rick