so on Windows if you select a bunch of text lines, and press tab the text will move to the right, how can I do that on a Mac?

link|improve this question

50% accept rate
In what application? – Nifle Aug 31 '10 at 16:54
In a text editor – Uffo Aug 31 '10 at 16:55
1  
In notepad (on windows)when I select a bunch of lines and press the Tab-key the lines disappears. In what app does block indent when you do that? – Nifle Aug 31 '10 at 17:34
feedback

3 Answers

Entirely depends on the program - however most code text editors (eg. TextMate, TextWrangler etc.) accept the keyboard command Command-] to indent by one tab stop. More basic text editors such as TextEdit don't have any ability to indent at all (in Plain text mode - in rich text mode it turns it into a list).

link|improve this answer
feedback

As far as I know, Mac OS X's standard text-editing routines do not have a shortcut for block-indent. However, all worthwhile text editors support their own shortcuts for block-indent. You'll just need to look up how your favorite editor does it.

link|improve this answer
feedback

Mac OS has a very powerful text system, which allows you to define system-wide shortcuts that can do a lot. Here's a really nice overview.

The easiest way to edit the shortcuts is KeyBinding Editor. Here's a screen shot of it, with a keybinding to indent the current line on Tab alt text

Save to ~/Library/KeyBindings/DefaultKeyBinding.dict and the next time you launch any Cocoa app your new bindings will be active.

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.