Can I save collapsed code in Sublime Text 2?

前端 未结 1 1014
猫巷女王i
猫巷女王i 2021-02-16 00:24

Have code I can forget about all looking nice:

\"nice\"

However, upon closing the file and reopening it:

1条回答
  •  情深已故
    2021-02-16 00:39

    I think the BufferScroll plugin will do what you want.

    Buffer Scroll is a simple Sublime Text plug-in which remembers and restores the scroll, cursor positions, also the selections, marks, bookmarks, foldings, selected syntax and optionally the colour scheme, when you open a file. Will also remember different data depending the position of the file in the application (example file1 in window1 has scroll line 30, file1 in window2 has scroll in line 40)

    Also, via preferences, allows to enable syncing of scroll, bookmarks, marks and folds between cloned views, live.

    Update:

    To install this package on ST2, you have to add the repository to your PackageControl user settings:

    "repositories":
        [
            "https://github.com/titoBouzout/BufferScroll"
        ]
    

    Now you should be able to do a standard install from ST2.

    0 讨论(0)
提交回复
热议问题