IDEA常用快捷鍵

  1. Ctrl+Shift+Backspace (Navigate | Last Edit Location) brings you back to the last place where you made changes in the code.
  2. Use Ctrl+Shift+F7 (Edit | Find | Highlight Usages in File) to quickly highlight usages of some variable in the current file.
    Use F3 and Shift+F3 keys to navigate through highlighted usages.
    Press Esc to remove highlighting.
  3. Press Alt+Q (View | Context Info) to see the declaration of the current method without the need to scroll to it.
  4. Use F2/Shift+F2 keys to jump between highlighted syntax errors.
  5. Use Ctrl+Alt+向上箭頭/Ctrl+Alt+向下箭頭 shortcuts to jump between compiler error messages or search operation results.
  6. Use Ctrl+J to complete any valid Live Template abbreviation if you don’t remember it. For example, type it and press Ctrl+J to see what happens.
  7. When using basic code completion (Ctrl+空格), type any characters that exist anywhere in an identifier.
  8. Use Alt+向上箭頭 and Alt+向下箭頭 keys to quickly move between methods in the editor
  9. Ctrl+Shift+J shortcut joins two lines into one and removes unnecessary space to match your code style.
  10. To see the inheritance hierarchy for a selected class, press Ctrl+H (Navigate | Type Hierarchy).
  11. To easily evaluate the value of any expression while debugging the program, select its text in the editor (you may press a Ctrl+W a few times to efficiently perform this operation) and press Alt+F8.
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章