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).
请先登录再写评论。
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.
Andriy Bazanov
Here's an example: https://streamable.com/alzvd
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).
Thank you, that work's :)
This has been requested 11 years ago here : https://youtrack.jetbrains.com/issue/WI-879?_ga=2.181093863.1587529672.1603306214-1024948947.1600677357