Copy link to clipboard
Copied
Hi
I have a semi big project, where the brackets style is all messed up, different syles all over the place.
I worked in FDT long time ago. Here there was a place where you could format the brackets in exitisting files. (Not talking about the new code i write but exitisting)
I found an addon called flex formater, but I dont seem to be able to change exitisting code.
Any ideas?
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/FlexPrettyPrintCommandUpdateSite
After installing you can reformat the code using Ctrl + Shift + F.
Copy link to clipboard
Copied
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
Copy link to clipboard
Copied
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;
}
Copy link to clipboard
Copied
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/FlexPrettyPrintCommandUpdateSite
After installing you can reformat the code using Ctrl + Shift + F.
Copy link to clipboard
Copied
Thanks thats it.
I had allready installed flex formater. I was missing ctrl + shift + f. Sweet thats a lot of help