I grow tired of carefully hand indented multi-line function arguments or logic statements being reformatted on cut/copy - paste operations.
i.e. code that started out like
LPCTSTR FoldersToIgnore[] = { _T("_Disk"),
_T("_Storage Card"),
_T(".Production-Archive"),
_T(".TCCSync-Archive"),
_T(".USBData-Archive"),
_T(".Production-Data")};
if ( (ItemName.CompareNoCase(FoldersToIgnore[i]) == 0) ||
( !Path.IsEmpty() &&
Path.Left((int)_tcslen(FoldersToIgnore[i])) == 0))
{
return false;
}
being reindented to
LPCTSTR FoldersToIgnore[] = { _T("_Disk"),
_T("_Storage Card"),
_T(".Production-Archive"),
_T(".TCCSync-Archive"),
_T(".USBData-Archive"),
_T(".Production-Data")};
if ( (ItemName.CompareNoCase(FoldersToIgnore[i]) == 0) ||
( !Path.IsEmpty() &&
Path.Left((int)_tcslen(FoldersToIgnore[i])) == 0))
{
return false;
}
on pasting.
One can work around this effect by following every paste operation with a Ctrl-Z Undo, but it would be nicer if it didn't happen in the first place.
thanks
Richard.