Quantcast
Channel: YouTrackReSharper (RSRP) - Bug and Issue Tracker
Viewing all articles
Browse latest Browse all 106942

RSRP-296679: Indenting a collapsed block of code doesn't give the same results with tab as it does with increase indent

$
0
0
Reporter Brian Surowiec (xt0rted) Brian Surowiec (xt0rted)
Created Apr 21, 2012 12:16:16 PM
Updated Apr 21, 2012 3:35:47 PM
Priority Normal
Type Bug
Fix versions No Fix versions
State Submitted
Assignee Unassigned
Subsystem No subsystem
Affected versions 6.1.1
Fixed in build No Fixed in build
If I collapse a block of code, highlight it, and then use the increase indent menu option then the entire block of code indents one tab per line but if I use the tab key instead then only the first line indents and it indents once for each non empty line in the collapsed block.

This code block when collapsed
public void Foo()
{
    Bar();
}

returns this
                public void Foo()
{
    Bar();
}



While this code block when collapsed
public void Foo()
{
    Bar();

    Bar();

    Bar();
}

returns this
                        public void Foo()
{
    Bar();

    Bar();

    Bar();
}


Decreasing the indent on a collapsed block of code from both the menu and using shift + tab dedents each line by one tab as expected.

Viewing all articles
Browse latest Browse all 106942

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>