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

Key: IDEADEV-14348
Type: Bug Bug
Status: Open Open
Priority: Major Major
Assignee: Maxim Shafirov
Reporter: Calum MacLean
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
IDEA: Development

Surround With doesn't maintain code style

Created: 25 Sep 06 15:14   Updated: 06 Nov 08 23:24
Component/s: Code Formatting and Code Style
Fix Version/s: Undefined

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

Build: 5,734
Severity: Low


 Description  « Hide
I have the following code:
// my code
        try
        {
            System.out.println("Hello world!");
        }
        catch (Exception e)
        {
            e.printStackTrace();
        }

If I surround the try-catch with while (using Surround With), the brace and the code after the try are incorrectly indented:

// my code
        while (true)
        {
            try
        {
            System.out.println("Hello world!");
            }
            catch (Exception e)
            {
                e.printStackTrace();
            }
        }


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