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

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.

Comment actions Permalink


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

Comment actions Permalink

Thank you, that work's :) 


Please sign in to leave a comment.