[Feature request] Transform automatically . into ->

General questions regarding the usage of CodeLite
Folco
CodeLite Curious
Posts: 5
Joined: Sun Jun 01, 2014 4:19 pm
Genuine User: Yes
IDE Question: C++
Contact:

[Feature request] Transform automatically . into ->

Post by Folco » Thu Jul 16, 2015 1:41 am

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 =)

User avatar
eranif
CodeLite Plugin
Posts: 6091
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

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

Post by eranif » Thu Jul 16, 2015 9:51 pm

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
Make sure you have read the HOW TO POST thread

Folco
CodeLite Curious
Posts: 5
Joined: Sun Jun 01, 2014 4:19 pm
Genuine User: Yes
IDE Question: C++
Contact:

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

Post by Folco » Thu Jul 16, 2015 11:08 pm

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.

Post Reply