Visual Studio : exclude outlining from undo/redo stack

前端 未结 6 1343
既然无缘
既然无缘 2021-02-03 22:16

There\'s something really annoying in Visual Studio : when I expand or collapse a method or code region, this action is pushed on the undo stack. So if I edit some code in a met

6条回答
  •  礼貌的吻别
    2021-02-03 23:03

    First, it seems that not all outlining operations are recorded in the undo/redo stack.

    • Toggle Outlining Expansion (CTRL+M/CTRL+M) is recorded in the stack
    • Toggle All Outlining (CTRL+M/CTRL+L) is recorded in the stack
    • Collapse to definitions (CTRL+M/CTRL+O) is NOT recorded in the stack

    So, as far as I know, it is not possible to avoid the recording of Toggle operations in the undo/redo stack in Visual Studio 2008.

    The only option you have it to enable/disable outlining for each source type. For C#, outlining can be enabled/disabled in ToolsOptionsText EditorC#Advanced with the Enter outlining mode when files open checkbox.

提交回复
热议问题