Skip to content

Latest commit

 

History

History
56 lines (39 loc) · 1.58 KB

ij-win-lin-split-join.md

File metadata and controls

56 lines (39 loc) · 1.58 KB

Top => IntelliJ on Windows/Linux

JetBrains IntelliJ IDEA on Windows/Linux

Kata for practicing keyboard shortcuts for common editing operations

Kata: Splitting and joining lines

Key sequences to practice

  • (Ctrl + Home) - move the caret to the beginning of the file
  • (Down Arrow) - move the caret down one line
  • (Ctrl + Right Arrow) - advance through the text word by word
  • (Ctrl + Enter) - split line at current caret position
  • (Ctrl + Shift + J) - append the next line to the end of the current line

Keystrokes without explanations

  • Open the text file, rain-in-spain.txt.
  • Repeat the following keyboard inputs until the sequence becomes fluid.
(Ctrl + Home)
(Down Arrow)
(Down Arrow)
hold (Ctrl)
(Right Arrow)
(Right Arrow)
(Right Arrow)
(Right Arrow)
release (Ctrl)
(Ctrl + Enter)
(Down Arrow)
(Down Arrow)
(Down Arrow)
(Ctrl + Shift + J)

Walkthrough of steps with explanations

  1. Open the text file, rain-in-spain.txt.
  2. Press (Ctrl + Home) to move the caret to the beginning of the file.
  3. Press (Down Arrow) twice to move the caret to the beginning of the line that reads, "The quick brown fox jumped over the lazy dog."
  4. Hold (Ctrl) and press (Right Arrow) four times to move the caret after the word, "fox".
  5. Press (Ctrl + Enter) for "smart" split, or just Enter), to split the line after the word "fox".
  6. Press (Down Arrow) three times to position the caret on the line about "life".
  7. Press (Ctrl + Shift +J) to append the next line to the current line.

And then to revert:

  • Press (Ctrl + Z) repeatedly to undo changes.