phptools-docs icon indicating copy to clipboard operation
phptools-docs copied to clipboard

Rename variable remove $ from userInput

Open shyim opened this issue 9 months ago • 1 comments

I often delete the whole input and then type, in that way I delete the starting $ on the variable name.

Image

It would be nice, if that could be stripped off from the user input 🤔

shyim avatar Mar 03 '25 14:03 shyim

I think we ignore the $, so it can be renamed without the $ at the beginning.

jakubmisek avatar Mar 03 '25 14:03 jakubmisek

Image

$ is ignored when renaming variables. We intentionally keep it in the input, so what is being renamed is obvious. The identifier without the $ can have a different meaning.

jakubmisek avatar Apr 18 '25 12:04 jakubmisek