Skip to content

Commit

Permalink
Add a note about Optimize Imports feature
Browse files Browse the repository at this point in the history
  • Loading branch information
bocharsky-bw committed Mar 27, 2019
1 parent 8512da4 commit 896e25d
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions knpu/refactoring.md
Expand Up @@ -104,6 +104,12 @@ Delete both of those:

[[[ code('71e97bcc49') ]]]

***TIP
Or you can go "Code" -> "Optimize Imports" instead (`Control` + `Alt` + `O` on a Mac)
to remove unused imports, add missing imports, and organize import statements in
the current file.
***

With the `BaseController` in action, let's refactor `getEm()` into the `BaseController`.
Select the method, one cool way to do that is hit `option+up` which will select larger
and larger contexts. Now hit `control+t`. Select "Pull Members Up" from the menu,
Expand Down

0 comments on commit 896e25d

Please sign in to comment.