10

I know how to do it on Mac, Linux and Windows, but it doesn't work on Chromebook. You'd expect it to be alt-up/down like Win/Linux, but that is treated like home and end.

Anybody know the trick?

Travis Reeder
  • 38,611
  • 12
  • 87
  • 87

2 Answers2

10

Alt + Up/Down and Ctrl + Alt + Up/Down are reserved by Chromebook. You could open File --> Preferences --> Keyboard Shorcuts in VS Code and change Move Line Up/Down settings to something else.

Chromebook keyboard shortcuts

Chromebook keyboard shortcuts image

5

There's a easy way.

Just open google-chrome and type chrome://flags in the URL bar,go to the Experiments page.

Search Deprecate Alt based six-pack , then Enable this feature.

Restart.

Then you can use the default shortcut to move line up/down in VSCode.

cxOrz
  • 53
  • 1
  • 3
  • This should be the right answer. This removes some integrated shortcuts of the OS but helps to keep consistent keybindings using VSCode between Linux boxes. Thanks for sharing. – Punkman Feb 19 '23 at 09:45