In Mathematica, if I put the marker right next to a line of text and press Tab, the line indents, but if I mark a block of text and press Tab the whole text is replaces with an indent.

I've tried different combinations like shift + Tab, option + Tab, none of them work.

  • ...In what app? – Tetsujin Oct 5 '17 at 7:43
  • Mathematica for the moment or another program? Should it really matter? – Turbotanten Oct 5 '17 at 7:48
  • Yes, it does matter. :) Different apps provide different functionality and can offer various ways to achieve the same outcome. – Monomeeth Oct 5 '17 at 7:52

It's up to the app to support this. Pressing tab inserts a tab character, so if you have text selected, it will be replaced by the tab. The app must intercept the tab key and perform a special action of adding the tab to the start of each selected line.

You can quickly add a tab to the start of a line by moving the cursor to the start using ⌘← then pressing ⇥ to add the tab.

You can use a Keyboard Maestro macro to add block indent functionality to apps:

  • Yes but that only indents one line of text. I want to indent a whole chunk of text. – Turbotanten Oct 5 '17 at 7:54
  • It's up to the app... for instance TextWrangler/BBEdit use Cmd ] or [ for indents. I've never used Mathematica, so idk how/if that supports it. – Tetsujin Oct 5 '17 at 7:59

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .