IntelliJ Idea Usage Tips

Source: Internet
Author: User

Use of a shortcut key

1. Text editing
Delete Ctr + y
Copy Ctr + D
2. Smart Tips
Tip Ctr + Space
Smart Tips Ctr + SHIFT + Space
Complete the current Statement Ctr + SHIFT + ENTER
Suggested hint for parameter Ctr + ALT + P
Rearrange the formatting of the code Ctrl + Alt + L
Optimize for imports Ctrl + Alt + O

3. Location positioning
navigates to the next or previous error F2/shift + F2
Locating file Header ctr+g (navigates to file lines)
locating file End Ctr+g
Navigate to code block to start Ctr + [
Navigate to code block End Ctr +]
back to the nearest window F12
back to the previous file Alt + left
back to the file after ALT + right
navigate to last edit position Ctrl + Shift + Backspace
Switch from tool window or other window to file edit ESC
Close the recently opened window SHIFT + ESC

4. Classes, methods, file positioning
find class Ctr + N
find file Ctrl + Shift + n
symbol positioning CTRL + ALT + Shift + N

recently opened file Ctr + E
positioning the next method Alt + down
position the previous method Alt + up
View method parameter information Ctr + P
View the Doc Ctr + Q

for methods, classes

5. Class, method structure view, positioning
Skip to class or method declaration Ctr + B
Navigate to the class's parent class, Interface Ctr + U
View the inheritance structure of the class Ctr + H
View the inheritance structure of the method Ctr + SHIFT + H
view class or method is called Ctr + alt +h
in situ see class, method declaration Ctrl + Shift + I

6. Operation and Commissioning
Compile and Run
Ctrl + F9 Make project (compile modifed and dependent)
Ctrl + Shift + F9 Compile selected file, package or module
Alt + Shift + F10 Select configuration and run
Alt + Shift + F9 Select configuration and debug
Shift + F10 Run
Shift + F9 Debug
Ctrl + Shift + F10 Run context configuration from editor
Debugging
F8 Step Over
F7 Step into
Shift + F7 Smart Step Into
Shift + F8 Step out
Alt + F9 Run to Cursor
Alt + F8 Evaluate expression
F9 Resume Program
Ctrl + F8 Toggle Breakpoint
Ctrl + Shift + F8 View breakpoints

IntelliJ Idea Usage Tips

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.