Raid
Raid

Reputation: 79

Sublime auto fold the code

By default when I open file it looks as follows:

enter image description here

And I want always unfold when I open a file

enter image description here

Is there any keybinding exist that can unfold everything automatically not require any command from keyboar ? Thank you !

Upvotes: 0

Views: 537

Answers (1)

MattDMo
MattDMo

Reputation: 102892

If you last saved a file while it was folded, Sublime will remember that. Select Edit -> Code Folding -> Unfold All, make a small change like adding then deleting a space, then resave the file. It will open unfolded next time.

Also, as a point of style, please use 4 spaces for indentation. Using 1 space, it's almost impossible to differentiate the various indentation levels. 2 spaces is almost as bad. With a Python file open, select Preferences -> Settings-More -> Syntax-Specific - User and add the following:

{
    "tab_size": 4,
    "translate_tabs_to_spaces": true
}

Upvotes: 1

Related Questions