Is it possible to move a property to another class using ReSharper?

I have several properties, and I want to collect them under a class to make my code cleaner.

Can I do it fast with ReSharper?

thank

+3
source share
5 answers

Move static member Ctrl +R, O to ReSharper. They have a printed key combination that is also useful before you recognize them all (I still don't have ...) You can find it here .

+2
source

Nick Craver , , , . . , , , ?

, , .

+1

jamiebarrow is correct, you need to reorganize the static type first, see here:

http://www.jetbrains.com/resharper/webhelp/Refactorings__Move__Type_to_Another_Type.html

+1
source

Yes, I believe that one of the standard refactoring built into ReSparper and IntelliJ.

0
source

This is pretty tricky.

  • Place the cursor over the field you want to move.
  • Click Ctrl+R O
0
source

Source: https://habr.com/ru/post/1734554/


All Articles