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.


2 Answers 2


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

The shortcuts for folding:

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


  • 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

  • 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. Jul 15, 2016 at 4:31
  • 1
    Works on Linux too, with same key combo as Windows. Jun 17, 2018 at 13:49

Did you try Edit > Code Folding > Unfold ?

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .