| Author |
Message |
|
Trikke
Member
Joined: Mon Sep 07, 2009 10:02 am Posts: 1
|
 Re: FDFlexFormatter v0.2
Is it also possible to keep the cursor at the position where it was before the reformatting?  Also, yes, a nicer settings screen would make me day 
|
| Mon Sep 07, 2009 1:10 pm |
|
 |
|
bjarneh
Member
Joined: Sun Mar 02, 2008 11:17 am Posts: 59 Location: Gothenburg, Sweden
|
 Re: FDFlexFormatter v0.2
I love this plugin, great work fmotagarcia, thanks! I just took over some code from a developer with (imho crazy formatting), and this made my day a bit smoother  /Bjarne
|
| Mon Jan 04, 2010 8:44 am |
|
 |
|
aaulia
Member
Joined: Tue Jul 15, 2008 3:36 am Posts: 160
|
 Re: FDFlexFormatter v0.2
Is the source code of this plugin is available ?
|
| Sat May 08, 2010 5:20 am |
|
 |
|
Kulkoff
Member
Joined: Sat Nov 15, 2008 4:00 am Posts: 171
|
 Re: FDFlexFormatter v0.2
aaulia wrote: Is the source code of this plugin is available ? http://code.google.com/p/fdflexformatter/
|
| Sat May 08, 2010 6:56 am |
|
 |
|
away4m
Member
Joined: Wed Apr 29, 2009 8:20 am Posts: 1
|
 Re: FDFlexFormatter v0.2
i have some trouble with "$" leaded variables.Indent algorithm falsely merge it with var keyword.İ think its wrong behaviour...
var $display:Sprite become var$display:Sprite after the indenting
|
| Tue Aug 17, 2010 8:52 am |
|
 |
|
oopstoons
Member
Joined: Wed Sep 23, 2009 6:04 pm Posts: 20
|
 Re: FDFlexFormatter v0.2
Thanks for the plugin. Great work! A few questions, suggestions and bugs. 1: Is there any way to keep a single if statement on one line? Code: // Currently this: if (i > 1) trace("1");
// Gets reformatted to this: if (i > 1) trace("1"); 2: This one is probably a wish list item. Is there/can there be a flag to keep case statements on one line if they are on one line? Code: // if the case statement is on one line: switch (button) { case next: increment = 1; break; case back: increment = -1; break; case first: increment = -100; break; case last: increment = 100; break; }
// It won't switch to this: switch (button){ case next: increment = 1; break; case back: increment = -1; break; case first: increment = -100; break; case last: increment = 100; break; } 3: Like elyon, I too would like the option to add a space between the parentheses of a function and the bracket. 4: If I try to run the command when my cursor is at the end of the file I get the following error: Code: System.ArgumentOutOfRangeException: Index and length must refer to a location within the string. 5: Occasionally after formatting, my line ends will get switched from CR+LF to only LF. 6: It would also be real awesome if there was an option to only format the selected text. That way one could manually select what doesn't get auto formatted. Anyways, THANKS!
|
| Thu Oct 14, 2010 7:28 pm |
|
 |
|
Deril
Member
Joined: Sun Aug 19, 2007 4:56 pm Posts: 195 Location: Germany (TEMP)
|
 Re: FDFlexFormatter v0.2
Hello, this is the almost perfect ActionScrip formatter for FD. I wonder is it hard to add new parameter : "Intend broken statements with aditionol tab". The goal would be detect lines that starts with "&&", "||", "+", "*", "/", "-". or ends with : "," and treat those as broken lines, don't put them to one line and intend with extra tab. this block of code shold not be altered after formate : Code: package com.mindscriptact.logmaster.testing {
/** * ... * @author Deril */ public class BrokenLineTest { public function BrokenLineTest(){ }
private function lotOfParametersTest(par1:int, par2:int, par3:int, par4:int, par5:int):void { if ((par1 == 1 || par2 == 3) && (par3 == 3 || par4 != 4)){ par1 = par2 + par3 * par4 / par5; } } } }
I know this code look bad..  thats not the point. Then you have too many parameters or actions in statement you want them to be visible, not go out of screen.
|
| Sun Oct 31, 2010 2:21 pm |
|
 |
|
ir73
Member
Joined: Thu Mar 29, 2007 9:32 am Posts: 244
|
 Re: FDFlexFormatter v0.2
I did not find a way to force FDFormatter put space after closing brace and before { Example: I also did not find a proper setting to fix that. Am I doing something wrong.
|
| Wed Nov 24, 2010 3:25 pm |
|
 |
|
Mika
Admin
Joined: Tue Aug 30, 2005 6:14 pm Posts: 2535 Location: Finland
|
 Re: FDFlexFormatter v0.2
FDFlexFormatter has now been integrated to FD4 as CodeFormatter. 
|
| Wed Nov 24, 2010 7:05 pm |
|
 |
|
fmotagarcia
Member
Joined: Thu Jul 30, 2009 12:41 pm Posts: 12
|
 Re: FDFlexFormatter v0.2
I'm really happy that FDFlexFormatter was integrated into FD  When I released the plugin, my main goal was that I could get some help improving it. I'm also glad that I contributed with the feature I used to miss the most in Flasdevelop. It's nice that I could contribute back to the best AS3 editor available.
|
| Mon Nov 29, 2010 8:46 pm |
|
 |
|
Mika
Admin
Joined: Tue Aug 30, 2005 6:14 pm Posts: 2535 Location: Finland
|
 Re: FDFlexFormatter v0.2
We needed to modify the plugin very little, it was really well done. Thanks again!
|
| Mon Nov 29, 2010 9:10 pm |
|
 |
|
leejk
Member
Joined: Tue Nov 09, 2010 7:15 pm Posts: 14
|
 Re: FDFlexFormatter v0.2
That's great news. Which build of FD will it be in?
Also, I am wondering if it is possible to add another option in FlexFormatter so that it keeps getter and setter methods on one line. I prefer this look as it does not take up unnecessary space in the code. Plus FD automatically creates these types of methods when you use the Ctr+Shift+1 shortcut, so FlexFormatter undoing this seems contradictory.
thx
|
| Thu Dec 02, 2010 1:48 pm |
|
 |
|
Mika
Admin
Joined: Tue Aug 30, 2005 6:14 pm Posts: 2535 Location: Finland
|
 Re: FDFlexFormatter v0.2
We already did some other improvements to it and we will get back to it later on.
|
| Thu Dec 02, 2010 2:32 pm |
|
 |
|
aaulia
Member
Joined: Tue Jul 15, 2008 3:36 am Posts: 160
|
 Re: FDFlexFormatter v0.2
Is there any chance combining the matsumos formatting plugin also ? Since last time I check Flex Formatter doesn't support aligning "assignment" op, other than in initialization.
|
| Thu Dec 02, 2010 4:34 pm |
|
 |
|
Deril
Member
Joined: Sun Aug 19, 2007 4:56 pm Posts: 195 Location: Germany (TEMP)
|
 Re: FDFlexFormatter v0.2
hm... I don't get why people want to align the types and values... variable name and type is one entity... I would not separate it with any space. and aligning values in lot of cases makes finding witch value belongs to witch variable harder task, because of the gap. I mean.. who reads code in columns? you usually scan it by lines.. Well ok... code looks nicer... but who cares, it should be readable, not look pretty. Maybe we should start doing ANCI art out of code! 
|
| Sat Dec 04, 2010 11:00 pm |
|
|