Among them, those that are frequently used personally are marked with a star.
When you want to find a class, you can use this function to search by class name. It is convenient because you can search by wildcards such as prefix match, suffix match, and partial match.
Ctrl + Shift + T
When you want to find a file, you can use this function to find it by file name. You can search by wildcards such as prefix match, suffix match, and partial match.
Ctrl + Shift + R
Open a window to search. It is often used to search for files in the workspace with "File Search".
Ctrl + H
You can comment out or uncomment the target line.
I use it as a matter of course, but beginners don't know it.
It's irresistible to see a beginner wearing multiple lines one by one //
, so please remember it first.
Ctrl + /
You can erase one line.
Ctrl + D
Candidate methods and fields for class instances appear.
Normally, if you add .
, candidates will appear naturally, but you can use it when you do not inadvertently select a candidate or when you want to see other candidates after deciding a candidate.
If you write "syso" or "sysout" and Ctrl + Space, Sysout.out.println () will be generated.
Ctrl + Space
Open the source code of the target class or method.
F3
or Ctrl + left click
Ctrl + left click
is quite convenientWhen there are not enough imports, or when unnecessary imports remain, this is an excellent item that can be neatly organized in one shot!
Ctrl + Shift + O
It lists the processes that call the target method.
Ctrl + Alt + H
Used when changing the class name, instance name, variable name, and method name. It's quite convenient because the refactoring function automatically changes the affected parts at once.
Alt + Shift + R
Used to move the editor tab for each class.
Move to Ctrl + PageUp
←
Go to Ctrl + PageDown
→
Use when you want to select an editor for each class.
Ctrl + Shift + E
This closes the tab of the class you have finished viewing.
Ctrl + W
If you open too many classes, this is it.
Ctrl + Shift + W
You can re-execute what you once executed in the console app. If you have never executed it, the "Execution Configuration" window will appear, so you can select and set the execution target.
Ctrl + F11
You can run the previous debug again.
F11
Shortcut key | Use | Description |
---|---|---|
F5 | Step in | It is used when you want to go inside the method of the corresponding processing that is stopped. |
F6★ | Step over | It is used to advance step by step from the place where you stopped at the breakpoint. |
F7 | Step return | Used when you want to return to the caller's processing from the location where the step is being executed. |
F8★ | Resume | It is used to cancel the state stopped by debugging and proceed. Stop at the next breakpoint you reach. |
You can set or cancel breakpoints on the line.
Ctrl + Shift + B
Recommended Posts