0

How to do same behaving in Sublime Text as in Visual Studio, when using column selection for example if there is a line break in a text, the cursor in Sublime go to beginning of a line

enter image description here

And this is behavior in Visual Studio desired behavior

enter image description here

Thanks

3
  • 1
    You know you can indent and dedent blocks of text by selecting them and hitting Ctrl-[ or Ctrl-], right? You don't need to do multiple selections at all... Commented Sep 29, 2014 at 12:41
  • +1 to @MattDMo. That's the correct way of doing it. You can also use Shift+Tab to dedent by tabs, or add a tab to every line of the selected text just by pressing tab. Commented Sep 30, 2014 at 6:30
  • @sergioFC I turned my comment into an answer below, expanding on it quite a bit. Commented Sep 30, 2014 at 15:17

1 Answer 1

1

While you may want this functionality for other reasons, it seems like you are using it to adjust the indentation of code blocks. Fortunately, there is a much easier way of doing this. Select the text for which you want to change the indentation, then press Ctrl] to increase the indentation (move block right), or Ctrl[ to decrease indentation (move block left). You can also increase indentation by selecting the desired lines and hitting Tab, and using ShiftTab to decrease it. The one place I can think of where multiple selections would come in handy is if, for some reason, you need to indent/dedent by fewer spaces than are in your tab stop. For example, if I have some code that's indented 3 spaces, and I want to change it to 4 (using the Indent Using Spaces setting in the View -> Indentation menu), I would use a multiple selection to put a cursor on each line, then use Space or Backspace to adjust spacing appropriately.

Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.