How to configure "Extract Variable"

Answered

On IDEA, when you run the "Extract Variable" refactoring after positioning the cursor on top of some expression, it shows you a list of possible expressions to extract. However, on Rider, it always tries to extract the whole line, which is almost never what I want to do (I normally want to extract something in the middle of the current statement).

I can "fix" this by first selecting what I want to extract, which works as expected, but I really prefer not having to do that. How can I change Rider to behave in the same way as IDEA?

Thanks in advance.

1 comment

Hello!

Unfortunately, this feature is not supported yet. Please, vote for the corresponding issue RSRP-470086.

0

Please sign in to leave a comment.