5
$\begingroup$

It's a bit tiresome repeating Ctrl+., or $\uparrow$, Shift+$\downarrow$ (in Mac), or grabbing the mouse to select the bracket every time one want to change the cell style.

As style commands on empty selections aren't even registered unless you type something following, do you Front End experts know if is there some hook, trick, option, shortcut, or configuration to effect the style application? Like this: if there's a non-empty selection, do as always; if the selection is empty, change the cell style.

$\endgroup$
  • $\begingroup$ This answers your problem: mathematica.stackexchange.com/questions/75328/… $\endgroup$ – M.R. Feb 26 '15 at 22:57
  • $\begingroup$ I really don't know why the FE developers don't answer these kind of questions, and make us mortals suffer... :) $\endgroup$ – M.R. Feb 26 '15 at 23:03
  • $\begingroup$ What do you mean by change the cell style? $\endgroup$ – Kuba Dec 1 '15 at 14:59
3
$\begingroup$

I don't find it useful to have a shortcut for every specific action but I agree that automatic selection of the cell bracket is something that is needed very often.

So I keep

SelectionMove[SelectedNotebook[],All,Cell]

procedure in my joker.m file from Shortcuts` package. You can read how to use it in highlighted text in chosen brackets. Is there no keyboard command for this?

Now you can Ctrl+t and do with that cell whatever you need, delete, change style etc.


Here is another topic related to customization of the FrontEnd in context of styling:

Create custom shortcut to change font color

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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