Watch, Follow, &
Connect with Us

Please visit our new home

Public Report
Report From: C#Builder/IDE    [ Add a report in this area ]  
Report #:  23534   Status: Reported
Wrong indentation after Surrond operation
Project:  C#Builder Build #:  10.0.2151.25345
Version:    10.0 Submitted By:   Oleg Zhukov
Report Type:  Basic functionality failure Date Reported:  1/14/2006 5:06:16 AM
Severity:    Commonly encountered problem Last Updated:
Platform:    All platforms Internal Tracking #:  
Resolution: None  Resolved in Build: : None
Duplicate of:  None
Voting and Rating
Overall Rating: (1 Total Rating)
5.00 out of 5
Total Votes: None
Code generated via 'surround by' operation has wrong indentation.
Steps to Reproduce:

1) Declare for example such method:

public void uselessMethod()



2) Select method body (one line) and choose "Surround->forb" from context menu.
The resulting code will have undesirable indentation:

public void uselessMethod()

for (int i = 0; i < length; i++)



Lex Li at 6/21/2006 1:13:03 AM -
You may use a formatter to format the file after editing.

AStyle or other tools may help.

Server Response from: ETNACODE01