Skip to content

Latest commit

 

History

History
41 lines (32 loc) · 2.45 KB

ij-osx-editor-tabs.md

File metadata and controls

41 lines (32 loc) · 2.45 KB

Top => IntelliJ on OS X

IntelliJ IDEA on Mac OS X: Open/close files, navigate between editor tabs

Practice keyboard shortcuts to open and close files in editor tabs and to navigate between editor tabs.

Kata: Open files, navigate between editor tabs, close files

Key sequences to practice:

  • ⌘N (Command +N) - create new file
  • ⌘⇧O (Command + Shift + O) - navigate to file
  • ⌘⌥O (Command + Option + O) - navigate to symbol
  • ⌘O (Command + O) - navigate to class declaration
  • ⌘W (Command + W) - close editor tab
  • ⌃→ (Ctrl + Right Arrow) - go to next editor tab *
  • ⌃← (Ctrl + Left Arrow) - go to previous editor tab *
  • In case ⌃→ and ⌃← conflict with OS X key mappings:
  • ⌘⇧] (Command + Shift + Right Square Bracket) - go to next editor tab
  • ⌘⇧[ (Command + Shift + Left Square Bracket) - go to previous editor tab

Steps

  1. Close all editor tabs.
  2. Press ⌘⇧O (Command + Shift + O) to open the "navigate to file" dialog.
  3. Start to type the name of a file, such as "lon". The filename "LongConditional.java" appears in the results list.
  4. With a single result shown, press ⌅ (Enter). The file opens in an editor pane.
  5. Press ⌘O (Command + O) to open the "navigate to class" dialog.
  6. Start to type the name of a class. The filename of the file containing the class declaraation appears in the results list.
  7. With a single result shown, press ⌅ (Enter). The file opens in an editor pane.
  8. Press ⌘⌥O (Control + Option + O) to open the "navigate to symbol" dialog.
  9. Type the name of a symbol, such as "intArg". Choose an entry from the results list and press ⌅ (Enter). The file containing the selected symbol occurrence opens in an editor tab.
  10. Highlight the project content root directory name in the left-hand pane.
  11. Press ⌘N (Command + N) to open the "new" context menu. Use ↓ (Down Arrow) to highlight the "File" entry and press ⌅ (Enter). An empty file is created in the project content root directory and opens in an editor tab.
  12. Press ⌃→ (Ctrl + Right Arrow) or ⌘⇧] (Command + Shift + Right Square Bracket) to navigate through the open editor tabs, moving to the right.
  13. Press ⌃← (Ctrl + Left Arrow) or ⌘⇧[ (Command + Shift + Left Square Bracket) to navigate through the open editor tabs, moving to the left.
  14. In any open editor tab, press ⌘W (Command + W) to close the file.
  15. Continue to press ⌘W (Command + W) to close all the open files.
  16. Repeat until bored.