4

I accidentally hit a key combination which collapsed my code to a yellow ellipsis symbol.

enter image description here

Can anyone tell me how to undo it? There is no button or symbol on the left side that I can click. Clicking, double-clicking, right-clicking on the ellipsis doesn't seem to help either.

0
8

The collapsing of code blocks like that is referred to as "Code Folding".

The shortcuts for folding:

  • OSX: Command + Option + ]
  • Windows: Ctrl + Shift + ]

Unfolding:

  • OSX: Command + Option + [
  • Windows: Ctrl + Shift + [

If you have no text selected it will fold/unfold the code block the cursor is currently in.

More info

2
  • I just ran into this problem myself and this answer helped but it was the other way for me on Sublime for Windows. Ctrl + Shift + [ folded the text and Ctrl + Shift ] unfolded it. – Kodos Johnson Jul 15 '16 at 4:31
  • 1
    Works on Linux too, with same key combo as Windows. – John Powell Jun 17 '18 at 13:49
2

Did you try Edit > Code Folding > Unfold ?

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.