how to clean up code in unity

previously I learned flash action script a little bit . in their script editor there is a button to normalize the code structure to make them looks more clean and organized without wasted space … .

I haven found it in unity script editor yet , anyone can help me to get this way ? also I don’t know why i cant post this in unity answers ,the system said no permission.

1 Like

I’m not sure what editor your using since you didn’t specify a program name.

Visual Studio:
CTRL+K,D or CTRL+E,D
or
Click Edit → Advanced → Format Document

MonoDevelop:
Click Edit → Format → Document Format

hi , thanks for your reply , i tried the Mono one , but it dosent work , those space still there and the structure hasnt been aligned automatically .

1 Like