Practice keyboard shortcuts to open and close files in editor tabs and to navigate between editor tabs.
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
- Close all editor tabs.
- Press ⌘⇧O (Command + Shift + O) to open the "navigate to file" dialog.
- Start to type the name of a file, such as "lon". The filename "LongConditional.java" appears in the results list.
- With a single result shown, press ⌅ (Enter). The file opens in an editor pane.
- Press ⌘O (Command + O) to open the "navigate to class" dialog.
- Start to type the name of a class. The filename of the file containing the class declaraation appears in the results list.
- With a single result shown, press ⌅ (Enter). The file opens in an editor pane.
- Press ⌘⌥O (Control + Option + O) to open the "navigate to symbol" dialog.
- 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.
- Highlight the project content root directory name in the left-hand pane.
- 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.
- Press ⌃→ (Ctrl + Right Arrow) or ⌘⇧] (Command + Shift + Right Square Bracket) to navigate through the open editor tabs, moving to the right.
- Press ⌃← (Ctrl + Left Arrow) or ⌘⇧[ (Command + Shift + Left Square Bracket) to navigate through the open editor tabs, moving to the left.
- In any open editor tab, press ⌘W (Command + W) to close the file.
- Continue to press ⌘W (Command + W) to close all the open files.
- Repeat until bored.