Search the Community
Showing results for tags 'mmx'.
Found 3 results
-
Rearrange implementation modifies empty lines at end of method
FPiette posted a topic in MMX Code Explorer
When I use the implementation section rearrange feature, MMX remove empty lines which separate each method. Before rearrangement, my code looks like: {* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *} // Some Comment procedure TForm1.Method1; begin // Some code end; {* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *} // Some more comment procedure TForm1.Method2; begin // Some code end; {* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *} There are TWO empty lines after the "end;" at the end of each method. After rearrangement, there is only one left. Is there and option to avoid this empty line removal? Thanks. -
I have a proposal for a new functionality for MMX. It is a simple change, and for me, and I hope other users too, can be very useful. I use prefixes in the names of method parameters, I personally prefer the letters a, o and v for const, out and var parameters, respectively: procedure Somethinghing(const aInput : Integer; out oOutput : string; var vOther : string); Thanks to this, inside the body of the method, I know which parameter has which features and whether I can (var) or should (out) change it. This greatly improves code readability and error avoidance. Of course I write about myself 😉 I suggest adding a function to MMX that could be called "Forcing a parameter name prefix". Of course, the prefix (a, c and o) themselves could be set in the MMX configuration (just like the prefix for object fields). Additionally, in the configuration I would also give a checkbox "Force parameter name prefix", which would be the default value when editing the method (ctrl+E) and which could be incidentally unchecked or checked as in the picture: Using the "force prefix" option would work in such a way that if the parameter has some prefix (lowercase letters in front, before uppercase) they would be replaced, e.g. xParam -> aParam, xyParam -> aParam, and if the parameter has no prefix then it would be added, Param -> aParam Does this idea seem good to you and you would take it up?
-
1. The Unit Dependency Analyzer lists both Classes and System.Classes: Isn't there an option to suppress these multiple unit names which differ only by namespace? (The preference should be given to fully qualified namespace). 2. As you can see from the above screenshots, both are indicated as "no source found": This is strange, as the source file is located here and should be found: c:\program files (x86)\embarcadero\studio\18.0\source\rtl\common\System.Classes.pas MMX13 in Delphi 10.1 Berlin