-
1. Re: Format curly brackets in an exitising project
ozDiGennaro Jul 8, 2011 8:25 AM (in response to Chrestang)I don't know how badly your format is messed up - but try this.
In Flash Builder, open an .as file that you want to format.
Select a section of text (maybe the whole file)
Use menu Source / Correct Indentation. Do you like the result?
(This menu selection is also available as a keyboard shortcut: Ctrl-I)
Let us know if this works for you.
Oz
4dtext.com
-
2. Re: Format curly brackets in an exitising project
Chrestang Jul 12, 2011 2:30 AM (in response to ozDiGennaro)Hi thanks for your answer, but that only correct indentation, that not helping with the brackets.
This is how much of the code is:
someFunciton()
{
blah;
}
somOtherFunciton(){
blah;
}
This is how I would like it to be.
someFunciton()
{
blah;
}
somOtherFunciton()
{
blah;
}
-
3. Re: Format curly brackets in an exitising project
bchalupka Jul 12, 2011 5:10 AM (in response to Chrestang)I recommend using the Flex Formatter plugin which can be downloaded at http://sourceforge.net/projects/flexformatter/
You can also start your FlashBuilder as admin and go to Help -> Install new software and use the following UpdateSite:
http://flexformatter.googlecode.com/svn/trunk/FlexFormatter/FlexPrettyPrintCommandUpdateSi te
After installing you can reformat the code using Ctrl + Shift + F.
-
4. Re: Format curly brackets in an exitising project
Chrestang Jul 12, 2011 5:38 AM (in response to bchalupka)Thanks thats it.
I had allready installed flex formater. I was missing ctrl + shift + f. Sweet thats a lot of help

