5

Is there a shortcut key to control the Open property of cell?

Thanks! enter image description here

LCarvalho
  • 9,233
  • 4
  • 40
  • 96
wind1239
  • 91
  • 6
  • 1
    There is one for open/close cell group: Command+'. Not the same but similar and possibly useful for similar purposes. – Szabolcs Aug 29 '18 at 08:20
  • Dear Szabolcs, thanks, but I did not get "Commnad +'". I want to transform the notebook to PPT, so I have many code to hide. Wish I can use a shortcut directly. – wind1239 Aug 30 '18 at 02:50

2 Answers2

1

I have find an answer which is really helpfull: AutoCollapse[] function (Hiding inputs with specific function)


Also have find the way of add shortcut button (Create custom shortcut to change font color).

Through change: MenuItem["&Open", CellOpen->Toggle, Scope->SelectionCell], to, e.g. MenuItem["&Open", CellOpen->Toggle, Scope->SelectionCell, MenuKey["0", Modifiers->{"Control"}]]

The figure is shown bellow: enter image description here

J. M.'s missing motivation
  • 124,525
  • 11
  • 401
  • 574
wind1239
  • 91
  • 6
1

While not directly a shortcut, you can always traverse the menu: Alt c p o

kvantour
  • 111
  • 2