NRefactory
NRefactory copied to clipboard
Indentation engine removes indentation in #if blocks
The indentation engine seems to mistreat the bodies of inactive #if blocks.
#if DEBUG
void WpfWorkbench_PreviewGotKeyboardFocus(object sender, KeyboardFocusChangedEventArgs e)
{
FocusDebug("GotKeyboardFocus: oldFocus={0}, newFocus={1}", e.OldFocus, e.NewFocus);
}
#endif
When pressing Ctrl+I, one level of indentation is removed from the FocusDebug() call. I would expect that inactive code blocks are completely ignored and not re-indented.