Community
Participate
Working Groups
If I double-click on the String constant it gets selected but Refactor -> Extract constant does not allow to create a constant from it, as it requires that the " is also selected. Would it be possible to automatically extend the selection? If yes, can you point me to an existing example how this can be done, I would like to try to provide a patch for this bug report.
Currently if user invoke Ctrl+1 and select "Extract Constant" inside a String literal without making any selection, then "Extract Constant" quick assist will expand the selection and perform the necessary refactoring. Check bug 315909 and the fix to understand how it is done.