1

I use Sublime Text 3 and Visual Studio 2013, I'd like to know if it's possible and how one would be able to highlight a block of code and move or drag it to the left. This would be the opposite of highlighting a few lines of code and hitting the tab button to shift them to the right. Is it a shortcut, a macro, a simple general thing?

archytect
  • 3,615
  • 5
  • 22
  • 30
  • See http://stackoverflow.com/questions/1052772/keyboard-shortcut-to-untab-move-a-block-of-code-to-the-left-in-eclipse-apt – Sergey Vlasov Jan 30 '15 at 06:50

2 Answers2

7

In Sublime Text, you can use the keyboard shortcut Ctrl] to move lines or blocks of text to the right, and Ctrl[ to move to the left.

MattDMo
  • 100,794
  • 21
  • 241
  • 231
0

In windows/linux, the shortcut is Ctrl+[or]

In Mac, the shortcut is Command+[or]

Jithesh Jose
  • 1,781
  • 1
  • 6
  • 17