Page 1 of 1

[Feature request] Transform automatically . into ->

Posted: Thu Jul 16, 2015 1:41 am
by Folco
Hi,

Would it be possible to have the dot operator automatically transformed into the -> operator ?
I don't know if it's easy to implement, but I discovered this feature with Qt Creator, and now I often type a dot instead of ->.
I ensure that when you are used with this feature, it's hard to do without ^^

Thanks in advance for your consideration =)

Re: [Feature request] Transform automatically . into ->

Posted: Thu Jul 16, 2015 9:51 pm
by eranif
Actually, this is one of those features that I prefer _not_ to implement.
The code completion is not compiler grade (unless clang is enabled) and it might do a mistake and insert into the code the wrong thing

Ofc, if anyone is willing to implement this and make this configurable with default value set to "Off" I will be more than happy to apply it
Eran

Re: [Feature request] Transform automatically . into ->

Posted: Thu Jul 16, 2015 11:08 pm
by Folco
I don't know the very first step that I should do to code that, so I can't promise anything. Neveretheless, thanks for the answer.