To access the Extract Method Refactor operation, you first must select a portion of code to refactor. You then invoke the light-bulb menu either through a right-click or the keyboard shortcut (Ctrl+.).
With Safari, you learn the way you learn best. Get unlimited access to videos, live online training,
learning paths, books, interactive tutorials, and more.