Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do you jump to the first non-whitespace character in a line with vscode?

I'm a long time Eclipse user. When using Eclipse, if I hit Tab while my cursor is in the whitespace that precedes the line's first non-whitespace character, the cursor jumps to the first non-whitespace character. If I hit Tab again, it will insert a tab (or requisite number of spaces) as expected.

In vscode, if my cursor is in the whitespace before the first character and I hit tab, the line gets indented further. I'm looking to be able to jump my cursor to the first non-whitespace character on the line like I do with Eclipse.

I've read through all of the settings and googled a bit but can't find this addressed.

like image 281
sethwm Avatar asked Oct 13 '25 10:10

sethwm


1 Answers

Press the Home key. If the cursor is already on the first non-whitespace character, pressing Home will move the cursor to the first character on the line instead.

like image 176
Francis Gagné Avatar answered Oct 15 '25 16:10

Francis Gagné