In Visual Studio Code, is there any command currently to move the selected text to the left or right?
I'm not talking about indentation btw.
Hold down the "Ctrl" key and the "Shift" key. Press the right arrow key to select the word to the right, or press the left arrow key to select the word to the left. Select one character at a time by holding down the "Shift" key and and using either arrow key (right or left).
A workaround for moving a block of text of just one space is to use the "column selection" feature of Visual Studio. here the detailed instruction:
If you need more info on Block Selection in Visual Studio you could easily find information on the official documentation or here: enter link description here Pay attention in the link the shortcut is wrong, at least for me.
For moving the text right and left you can use TAB key:
This feature has been implemented by a pull request some time ago.
To use it you need to bind the editor.action.moveCarretLeftAction
and editor.action.moveCarretRightAction
actions in the keyboard shortcuts editor.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With