Select the whole line

Select a full line without moving the cursor to its end

Blind test

Select the line the cursor is on

Why it works

VS Code uses ⌘L for the whole line, and pressing it again extends the selection down.

Tip

Select the line, then ⌘/ to comment or ⌘C to copy. Editing flows from there.

Train this shortcut

KeyFlow drills this card until your fingers know it. 10 valid cards a day keep the streak alive.

Coming to the App Store

Search 水果快捷键 in WeChat to start.