cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

How to fold / collapse selected code in Eclipse & ABAP Development Tools

Vlad_Ghitulescu
Participant
8,440

Hello!

How do you fold / collapse a selected part of your code in the editor window in Eclipse & ABAP Development Tools?

I don't want to fold only the part specific to a statement (IF, WHILE etc.) that's already marked by a + sign in a circle but a portion of the code that I select (with the mouse or the cursor and the arrow keys).

Any idea?

Thanks!

Regards,
Vlad

View Entire Topic
sdfraga
Participant
0 Likes

CRTL NUM PAD + Folds a block of code

CRTL NUM PAD - Collaps a block of code

CRTL SHFT NUM PAD / Folds all code

CRTL SHFT NUM PAD * Collaps all code (This one doesn't work for me)

Window -> Preferences -> Type Keys

Vlad_Ghitulescu
Participant
0 Likes

Hi, Sergio!

I have no NumLock on my keyboard, so I've changed the keyboard shortcut to something else (now I know how! 😉

However that doesn't do what I want (collapse ONLY the selected text) but instead collapses the content of the statement (as the small pluses in the circle in the gutter left do).

Thanks nevertheless!

Regards,
Vlad