Mission 31 / 52• Text Objects - Bracket Pairs

Change Around Brackets

`ca{` deletes the braces and contents and places you in insert mode.

Great for replacing an object literal with a variable reference or primitive.

Change around brackets

  • ca{change around curly braces
  • ca(change around parentheses
1
const config = { mode: "production" };

Position inside `{ mode: "production" }`, type `ca{`, and type `defaultConfig`.

Now it's your turn!

  1. Navigate to each green target across the code snippet.
  2. Use the motions and techniques learned in this lesson to land accurately on each target.
  3. See how fast you can complete 10 targets.
0/10
1
const config = { mode: "production" };
NORMAL
00:00
NextCtrl+jBrackets Review