Posted 20 years ago
by Boyd
-
Sr. Software Developer,
Patterson Consulting, LLC
When you toggle outlining from Expanded to Collapsed, it always seems to place the caret at the end of the collapsed region. In Visual Studio, the caret is always moved to the beginning of the collapsed region when a region is collapsed unless the caret was already positioned at the very last offset of the region. Here's an easy way to dupe it:
1) Open Sample App with C# Sample
2) Move the caret to the offset containing the "{" character on line 6
3) From the 'Outlining Menu', select 'Toggle Outlining Expansion'
4) The caret now jumps to the position just after the collapsed region
To mimic VS behavior, it should have stayed were it was. This is easy enough to code around, but I thought you might want to change the built-in behavior.
1) Open Sample App with C# Sample
2) Move the caret to the offset containing the "{" character on line 6
3) From the 'Outlining Menu', select 'Toggle Outlining Expansion'
4) The caret now jumps to the position just after the collapsed region
To mimic VS behavior, it should have stayed were it was. This is easy enough to code around, but I thought you might want to change the built-in behavior.