NRefactory icon indicating copy to clipboard operation
NRefactory copied to clipboard

Indentation engine removes indentation in #if blocks

Open dgrunwald opened this issue 11 years ago • 0 comments

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.

dgrunwald avatar Feb 18 '14 22:02 dgrunwald