Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

kate editor, shortcut to "fold/unfold all"

kate editor (default kate package on Ubuntu 14.04).

  • Is there a shortcut to "fold/unfold all"?

I found an option in View menu, but it doesn't work as needed.

like image 743
artm Avatar asked Sep 05 '25 17:09

artm


2 Answers

I'm one of the Kate developers: Folding toplevel nodes should work as expected through the menu View > Code Folding > Fold Toplevel Nodes.

In the upcoming KDE Frameworks 5.27 release, KTextEditor will additionally have the entry View > Code Folding > Unfold Toplevel Nodes, see this commit.

So right now, you have to wait for the next KDE Frameworks update, which will be released mid of October 2016.

PS: Ubuntu 14.04 is really old. You should consider updating to a more recent version of KDE, best Plasma 5.8 which has long term support (LTS).

like image 185
dhaumann Avatar answered Sep 08 '25 11:09

dhaumann


I think you are asking about code folding in Kate if so ,Please try the following shortcuts :

  1. Collapse One Local Level Ctrl+-
  2. Expand One Local Level Ctrl++
  3. Collapse Top level Ctrl+Shift+-
  4. Expand Top level Ctrl+Shift++
like image 30
thepiyush13 Avatar answered Sep 08 '25 10:09

thepiyush13