History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: RSRP-26082
Type: New Feature New Feature
Status: Open Open
Priority: Normal Normal
Assignee: Eugene Pasynkov
Reporter: Greg Law
Votes: 0
Watchers: 1
Operations

If you were logged in you would be able to see more operations.
ReSharper

Additional "Blank Lines" styles

Created: 06 Aug 06 18:17   Updated: 18 Oct 06 14:38
Component/s: Code Cleanup
Fix Version/s: Future Versions
Security Level: Everybody (All jira users)

Original Estimate: Unknown Remaining Estimate: Unknown Time Spent: Unknown

Old URL: http://www.intellij.net/tracker/resharper/viewSCR?publicId=26082


 Description  « Hide
Considering adding Blank Lines options to the specify the number of blank lines before and after the various conditional and looping constructs such as the following:

Around if [0..n]
Around for [0..n]
Around lock [0..n]
Around try/catch/finally [0..]
Around using [0..n]
Around while [0..n]
...

This may be somewhat complex because this should also allow exceptions if the conditional is at the top or bottom of the method and for nested conditionals. In our code standards, we place blank lines before and after conditionals and looping constructs except at the beginnning and end of methods and for nested conditionals and looping constructs, but I understand other developers may want to alter this code style to fit their needs.

private void Test
{
    [exception: no blank line here?]
    if(this == that)
    {
        [exception: no blank line here?]
        for(i = 0; i < 10; i++)
        {
            DoSomething();
        }
        [blank line here?]
        DoSomethingElse();
    }
    [exception: no blank line here?]
}


 All   Comments   Work Log   Change History      Sort Order:
There are no comments yet on this issue.