sublimetext2 – 我可以在Sublime Text 2中保存折叠的代码吗?

前端之家收集整理的这篇文章主要介绍了sublimetext2 – 我可以在Sublime Text 2中保存折叠的代码吗?前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
代码,我可以忘记所有看起来不错:

但是,关闭文件并重新打开它:

如何折叠这段代码我多年都不会编辑(希望如此!)并将其隐藏起来无限期?

解决方法

我认为 BufferScroll插件会做你想要的.

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.

更新:

要在ST2上安装此软件包,您必须将存储库添加到PackageControl用户设置:

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

现在您应该能够从ST2进行标准安装.

原文链接:https://www.f2er.com/html/226177.html

猜你在找的HTML相关文章