Refactor variable into class property is not valid

When refactor a variable into a class property, i got the error message "Inserted identifier is not valid" .
I've checked for updates and restarted the IDE, but the problem is still there.

I'm on version 2019.2.5 (MacOS).

5 comments
Comment actions Permalink

Hi there,

Please provide some simple code to reproduce and describe your steps in details (what you do precisely). Ideally (for description part) provide some screencast.

0
Comment actions Permalink

Thanks.

That refactoring ("Refactor | Rename..." action) does not work like that -- it's for renaming stuff (local variable in this particular case), not changing their nature (making class property instead of local variable).

1
Comment actions Permalink

Thank you, that work's :) 

0

Please sign in to leave a comment.