Type -> (arrow) when pressed . (dot)

Answered

Hi all,

if I have a shared_ptr<FOO> foo; 

I want to CLion to auto-correct the foo. to foo-> when I type .(dot).  Is that possible?

Thanks 

 

0
1 comment

Hi! CLion automatically change dots to arrows when accessing the member of a pointer rather than an object. But this auto-conversion is disabled for the objects that have operator-> like in your example. Please follow this ticket for more details.

0

Please sign in to leave a comment.