You can select a block of text and use tab / shift tab to reindent it.
But is there a way to adjust indent only +1 or -1 spaces if the orignal block was off by one space?
You can select a block of text and use tab / shift tab to reindent it.
But is there a way to adjust indent only +1 or -1 spaces if the orignal block was off by one space?
On OSX: command+ (unindent) and command+] (indent)
On Windows/Linux: control+ and control + ]
[quote=“C0D312”]On OSX: command+ (unindent) and command+] (indent)
On Windows/Linux: control+ and control + ][/quote]
I think that it’s un/indent using the tab size, it’s not a 1 space indent.
Don’t know a way to do it. I usually use a multi selection to add/remove space at the beginning of each line.
[quote=“bizoo”]
[quote=“C0D312”]On OSX: command+ (unindent) and command+] (indent)
On Windows/Linux: control+ and control + ][/quote]
I think that it’s un/indent using the tab size, it’s not a 1 space indent.
Don’t know a way to do it. I usually use a multi selection to add/remove space at the beginning of each line.[/quote]
why do you want to indent using single space size? curious.
once in a while i find myself reindenting lines and then hitting tab to snap the text to the indent level.
i’ve created a simple command which does exactly that.
snaps line/s across multiple selections to indent level in forw/backw direction.
assigned shortcuts analogic to indent/reindent commands -
‘ctrl+super+’ (snap to previous indent level)
‘ctrl+super+]’ (snap to next level)
https://gist.github.com/2876253
hope it solves your problem.
Old topic I know, but I don’t feel it was really answered and it’s the first result on the Googs.
Select the columns you want to adjust by using the built-in keyboard/mouse shortcuts described below, then use your spacebar/backspace key adjust +/- 1.
Column Selection
Overview
Column Selection can be used to select a rectangular area of a file. Column selection doesn’t operate via a separate mode, instead it makes use of multiple selections.
You can use additive selections to select multiple blocks of text, or subtractive selections to remove a block.
Using the Mouse
Different mouse buttons are used on each platform:
OS X
- Left Mouse Button + Option
- OR: Middle Mouse Button
- Add to selection: Command
- Subtract from selection: Command+Shift
Windows
- Right Mouse Button + Shift
- OR: Middle Mouse Button
- Add to selection: Ctrl
- Subtract from selection: Alt
Linux
- Right Mouse Button + Shift
- Add to selection: Ctrl
- Subtract from selection: Alt
Using the Keyboard
OS X
- Ctrl + Shift + Up
- Ctrl + Shift + Down
Windows
- Ctrl + Alt + Up
- Ctrl + Alt + Down
Linux
- Ctrl + Alt + Up
- Ctrl + Alt + Down
Sources:
https://www.sublimetext.com/docs/2/column_selection.html
https://www.sublimetext.com/docs/3/column_selection.html