Skip to content

Latest commit

 

History

History
36 lines (29 loc) · 2.06 KB

ij-win-lin-editor-tabs.md

File metadata and controls

36 lines (29 loc) · 2.06 KB

Top => IntelliJ on Windows/Linux

IntelliJ IDEA on Windows/Linux: 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:

  • (Ctrl + N) - create new file (when in project view)
  • (Ctrl + Shift + N) - navigate to file
  • (Ctrl + Alt + Shift + N) - navigate to symbol
  • (Ctrl + N) - navigate to class declaration (when in editor)
  • ⌘(Ctrl + W) - close editor tab
  • (Alt + Right Arrow) - go to next editor tab
  • (Alt + Left Arrow) - go to previous editor tab

Steps

  1. Close all editor tabs.
  2. Press (Ctrl + Shift + N) 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 (Ctrl + N) 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 (Ctrl + Alt + Shift + N) 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 (Ctrl + 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 (Alt + Right Arrow) to navigate through the open editor tabs, moving to the right.
  13. Press (Alt + Left Arrow) to navigate through the open editor tabs, moving to the left.
  14. In any open editor tab, press (Ctrl + W) to close the file.
  15. Continue to press (Ctrl + W) to close all the open files.
  16. Repeat until bored.