user2738698
user2738698

Reputation: 578

How to navigate by spaces in Visual studio code?

More specifically: How to navigate to the closest space to the left of the cursor in Visual studio code?

I've been looking around on google and even the shortcuts answers on SO but there's nothing.

EDIT 1: Clarification

Consider this text, and the cursor is at the caret:

This is a sentence
                  ^

Pressing this shortcut moves the cursor here:

This is a sentence
         ^

Edit 2: this is what Ctrl+Left does

... type="x" href="/a/path/to/file.css"
                                      ^
... type="x" href="/a/path/to/file.css"
                                   ^
... type="x" href="/a/path/to/file.css"
                              ^
... type="x" href="/a/path/to/file.css"
                           ^
... type="x" href="/a/path/to/file.css"
                      ^
... type="x" href="/a/path/to/file.css"
                    ^
... type="x" href="/a/path/to/file.css"
                 ^
... type="x" href="/a/path/to/file.css"
             ^

Edit 2: This is what I'm looking for:

... type="x" href="/a/path/to/file.css"
                                      ^
... type="x" href="/a/path/to/file.css"
             ^

Upvotes: 0

Views: 115

Answers (1)

Mark
Mark

Reputation: 182881

see Ctrl-leftArrow

{
  "key": "ctrl+left",
  "command": "cursorWordStartLeft",
  "when": "textInputFocus"
}

Upvotes: 1

Related Questions