Is there a place to change the tab size?


(mtiede) #1

I REALLY like 3 character tabs. I suppose everyone has different preferences, but if I can’t change some option somewhere I will have to manually adjust them all the time. Best would be if there were an option so that everyone could do what they like.

Are the tab characters being put in or spaces?


(marc hoffman) #2

Is there a place to change the tab size?

there is not. Fire and Water will use 2 spaces for Oxygene, and tabs for C#, Swift and Java, unconditionally.


(mtiede) #3

Well, I’m glad that Oxygene does spaces. But I’ll have to rearrange everything that Water does then.


(marc hoffman) #4

I can probably fairly easily add an option to configure the indent size for Oxygene. I’ll have a look next week (ie not in time for tomorrow’s beta, sorry).


(mtiede) #5

lol. GREAT. No reason to say sorry. Most people would say, “Maybe next year”. :slight_smile:

I’ll be looking forward to your beta.


(RemObjects) #6

Thanks, logged as bugs://80556


(marc hoffman) #7

Ok, not exposed in the UI, but tomorrow’s beta will read an override tab size for any language from the regsistry. Add a string value named “OxygeneTabSize” with the the proper number (ie 3) under HLCU\Software\RemObjects\Elements\Water (there should be a bunch of settings already under that key).

let me know what breaks and what doesn’t ;). I have confirmed it works for Tab/Shift-Tab, and for Smart-indent after ‘enter’. It will not affect templates or reformat (the former will need significant work; the latter I need to check with the core code model team).


(mtiede) #8

Great, I’ll try it tomorrow.

And thanks.


(Theo) #9

Microsoft would say: “Approved in principle”
And then “Speclet needed”
Followed by “Prototype needed”
And then “Ready for review”
After that “Merged”
And then it might be released.

There is at least 6 months between each step (the above is no joke).


(mtiede) #10

I know. I’ve been a Windows programmer since about Windows 3.0. (And I wrote my first program in 1966 in Fortran IV on punch cards) So I’m familiar with how Microsoft seems to take forever. And then when they do something good like, Silverlight, Band, Windows Phone, etc. they drop it like a hot potato.

I do have to say that Sql Server and Visual Studio are pretty darn good.


(Theo) #11

It is not that they can’t do things right.
But most times they just won’t.

I always wait a few versions before I start to use it, in case they drop it.
In the case of Silverlight: In version 5 they finally had printing in it, so I could use it. And the week before I wanted to get started, they dropped it (saved by the bell).


(mtiede) #12

I am still pissed they dropped Silverlight as I thought it was the way the web should have been done in the first place. Combined with RemObject’s Oxygene, I was REALLY happy. It took a little bit to get familiar with MVVM pattern and WCF’s complexities, but then it was off to the races. I loved it.

I learned a LOT with Silverlight that can still be applied.

I had a desktop app that was about 150,000 lines of Delphi code and about 75,000 of that was just for one aspect of the program. With xaml, I could do the same thing in almost no code and just a template for each class. The objects would draw themselves at various locations on a window and take care of overlapping objects for events, translucency of overlapping and many other aspects that I sweated blood to produce in Delphi.

So that is why I now find WebAssemblies so appealing. It isn’t the xaml part, but at least the javascript can be all but eliminated.

But I ramble…


(marc hoffman) #13

I agree with 50% of that statement ;). SQL Server is outstanding.


(mtiede) #14

I was thinking of Delphi vs Visual Studio. I really liked Delphi since its ancestor Turbo Pascal. But once I was using Oxygene in VS with Silverlight, I didn’t miss Delphi at all. Delphi kind of lost its way once Borland started slipping up. The original Delphi up to about version 6.0 was really a leader.

So now I’m exploring Water, as you know :wink:

Say, I don’t see a new Beta out there. It is still 2305? Is that right?


(Theo) #15

Marc, VS may have some issues, but I still have never seen any other IDE that is that advanced.
Of course it can still be improved (see the list I send you :))


(marc hoffman) #16

Today’s .2307 is out now.


(marc hoffman) #17

Or that slow and frustrating… though Xcode is catching up fast :wink:


(mtiede) #18

I don’t recall anything particularly slow or frustrating. Maybe when you are building a plug-in like Oxygene. Of course I was also mostly doing Silverlight, REST Service, and only occasionally WPF app. Can you comment on what was slow? Just curious.

I’ll go look for that new version…


(mtiede) #19

I don’t have ANY RemObjects under HLCU\Software. Should I really put the option there, or should I put it where the rest of the Water stuff is which is: Computer\HKEY_CURRENT_USER\Software\RemObjects\Elements\Water?

… time passes …

I added it with the rest of the Water stuff in current user and it WORKS. Thanks again.

… time passes …

uh oh. I have another ask… Does it make sense that that same parameter for OxygeneTabSize be also used in the “Edit|Reformat file” option? Otherwise, I won’t be using that reformat thingee.


(marc hoffman) #20

how is this different from the path I gave? (aside from the K/L typo)

that’s what I was referring to when I said:

:wink: