Learning to move efficiently in your editor can drastically reduce time for edits and reduce errors.
Open this file in Sublime Text, IntelliJ, VSCode, Zed and run through the practice exercises!
Start cursor here and move to end of line
^
Move cursor to beginning of line starting HERE
^
Start cursor HERE and select to end of line
^
Select to beginning of line starting HERE
^
Start HERE and move to here by word
^ ^
Move to here starting from HERE by word
^ ^
Start HERE and select to here by word
^ ^
Select to here starting from HERE by word
^ ^
- Click cursor to before the
w
of the first line - Hold down Option (VSCode or Zed hold down Option+Shift)
- Click-drag from before the
w
of first line to from before thew
of last line - Type
Hello
world!
world!
world!
Hello world!
Hello world!
Hello world!
- Click cursor to before the
w
of the first line - Hold down Command and click every before each
w
- IntelliJ: hold down Option-Shift
- VSCode or Zed: hold down Option
- Type
Hello
world! world! world!
^ ^ ^
Hello world! Hello world! Hello world!
- Select first
worl
(double-click) - Press Command-D (IntelliJ: Ctrl-G) twice to select others
- Type
world
or right-arrow +d
Hello worl!
Hello worl!
Hello worl!
- Click before
a
in apple - Vertical column select beginning of line
- Option+ClickDrag
- VSCode or Zed: Option+Shift+ClickDrag
- Type
"
- Go to end of line (Ctrl-E)
- Type
",
[
apple
orange
banana
]
[
"apple",
"orange",
"banana",
]