Mission 33 / 52• Text Objects - Quotes
Delete Inside Quotes
Strings are everywhere. Instead of manually moving inside quotes and backspacing, `di"` empties the string in one stroke.
Delete inside quotes
- di"delete inside double quotes (leaves empty "")
- di'delete inside single quotes (leaves empty '')
1const title = "Welcome to our application!";2const query = 'SELECT * FROM users';Position cursor inside the title string and type `di"`. You are left with `const title = "";`.
Now it's your turn!
- Navigate to each green target across the code snippet.
- Use the motions and techniques learned in this lesson to land accurately on each target.
- See how fast you can complete 10 targets.
0/10
1const title = "Welcome to our application!";2const query = 'SELECT * FROM users';NORMAL
00:00
NextCtrl+jDelete Around Quotes