• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
Locked
0

Format curly brackets in an exitising project

Guest
Jul 08, 2011 Jul 08, 2011

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?

Views

765

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Explorer , Jul 12, 2011 Jul 12, 2011

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.

Votes

Translate

Translate
Explorer ,
Jul 08, 2011 Jul 08, 2011

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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Jul 12, 2011 Jul 12, 2011

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;

}

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Jul 12, 2011 Jul 12, 2011

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.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Jul 12, 2011 Jul 12, 2011

Copy link to clipboard

Copied

LATEST

Thanks thats it.

I had allready installed flex formater. I was missing ctrl + shift + f. Sweet thats a lot of help

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines