As pointed out in http://www.amazon.co.uk/Clean-Code-Handbook-Software-Craftsmanship/dp/0132350882/ref=sr_1_1?ie=UTF8&s=books&qid=1230025581&sr=8-1 but independently arrived at by lots of people, having blank lines between functions can dramatically enchance readablity.
Hence this has been a convention used in my last two workplaces.
CtrlK, CtrlM (VS Create Method Stub) generates blank lines between functions automatically (which for years used to irrirate me as I deleted them!).
CR Create Method Stub doesnt.
Proposed Solution:
Have an option where you can tell CR whether to create blank lines or not for its new code.
(I have another issue logged about being able to press HOME and END in the targetting function - Ctrl K Ctrl M is a quick way to create at end with a blank line in between and I'd nearly use it in preference to the CR fucntion whichc isnt a good sign)
We have closed this ticket because another page addresses its subject:
CodeGen - Add options to specify code generation rules
Hi Ruben,
A similar suggestion is already in our database:
ID: S18717, CodeGen - Preserve formatting (especially, white spaces) when modifying code
So, I've marked this suggestion as its duplicate. You'll be automatically added to its "Trackers" list, and so, you'll be informed as soon as it is implemented.
Thanks,
Vito
Can there be a backreference to this issue though - there`s a big difference between a generic request for non-specific preservation of existing whitespace vs adding blank lines (or not) to keep code in sync with a coding standard than can specify it either way.
(Sorry if this seems picky, but its a pretty big distinction for me)
It appears that I pointed you to a wrong suggestion. I apologize for this mistake.
Actually, I meant this suggestion:
ID: S19229, CodeGen - Add options to specify code generation rules
Thanks,
Vito
OK, it would be nice if that issue would mention what such an option would entail, so that I can verify it covers what I'd like.
I'll of course be satisfied with a link to this being added to http://www.devexpress.com/Support/Center/p/S19229.aspx
Hi Ruben,
Ok, I've added the corresponding comment to this suggestion.
Thanks,
Vito