Visual Studio:从undo / redo堆栈中排除大纲 [英] Visual Studio : exclude outlining from undo/redo stack
问题描述
Visual Studio中有一些令人讨厌的东西:当我展开或折叠方法或代码区域时,此操作会在撤消堆栈上推送。因此,如果我在方法中编辑某些代码,然后折叠该方法,然后想要撤消我的更改,我必须撤消两次:一次用于折叠操作,一次用于代码更改。如果您在编辑代码后展开或折叠了几件事情,编辑器会不断跳到不同的地方并且您不知道您的更改是否已被撤消,这可能会非常令人困惑......
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 method, then collapse that method, and then want to undo my change, I have to undo twice : once for the collapse action, and once for the change in code. This can be VERY confusing if you expanded or collapsed several things after editing the code, the editor keeps jumping to different places and you don't know whether your changes have been undone or not...
所以我的问题是:是否可以禁用该行为?即,在撤销堆栈中只考虑代码中的更改?
So my question is : is it possible to disable that behavior ? i.e., that only changes in code are taken into account in the undo stack ?
PS:我正在使用Visual Studio 2008
PS: I'm using Visual Studio 2008
编辑:如果此行为也让您烦恼,请投票将其修复为UserVoice !
if this behavior annoys you too, please vote to fix it on UserVoice!
推荐答案
可以选它在 Visual Studio UserVoice 。
这篇关于Visual Studio:从undo / redo堆栈中排除大纲的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!