Mac 10.14.4
Xojo v2018 Relase 4
I know of it. But when I install it I am not sure what to expect. If I am in Xojo and go to the File>>IDE Scripts menu and run it, I get a message: IDE Script Compile Error
Compiler Error [11] Error found while compiling on line 365. Continue?
If I Continue I will get notifications of other lines with errors. 338 etc.
I have used cowgar script and that works for me if I call it from the Scripts menu. But if it is not going to do more than what would happen if I Cut and Paste back, then it is not too useful to me. It does things like capitalize
while
wend
if I do not have the Standardize format: Apply standardize format after ending line already set.
In the Xojo Preferences I do use Autocomplete >> Applies standard case and Shows Icons. Also Standardize format: Apply standardize format after ending line. This is a great boon.
Nonetheless, I remain quite frustrated at the state of formatting in Xojo. Take a Xojo function like round or abs or whatever. If I type rou then it will auto-complete to Round which I like with the capital “R” but I do not know how to convert all my [b]round/b to [b]Round/b in my code window. If I did not use autocomplete when typing round, I am stuck with the lower case “r”. If I paste in code from somewhere else, this situation applies as well.
Calling Standardize Format does not do it. I find this irritating.
Is there some method that I do not know of that will accomplish this task?
When I watch the YouTube video, it seems to imply that I place the script in the Scripts folder and it will somehow magically work without even calling it from the File>>IDE Scripts menu. I cannot understand how that could work. Does it conflict with the built-in formatting of Apply standardize format after ending line? Is it automatic because its name is “ReformatCode”?
Are my problems with manually calling it from File>>IDE Scripts menu simply because it is not intended to be used in this fashion?
When I try the test code of
if a=2 then
nothing magical happens. It seems to imply that I have not installed it correctly.
If I type (after the preference in the IDE is set to Standardize format: Apply standardize format after ending line)
if a=2 then
->
If a = 2 Then
On the other hand, if I type
hello()
The parenthesis do survive no matter whether or not I have Standardize format: Apply standardize format after ending line checked.
Typing
hello(world)
does not result in padding inside the parenthesis.