Sublime Text: disable all packages

こ雲淡風輕ζ 提交于 2019-12-03 11:35:29

问题


I'm using Sublime Text 3083.

When I load a file with several thousand lines and try to edit it, it gets amazingly un-responsive to the point that adding/removing even one character takes it seconds.

I have > 20 packages installed and I need a way to disable all of them at once, to check if this issue is package related or o not.

I've searched around and I know that you can disable packages one by one but that's not good when lots of packages are installed. According to this post in the sublime forum, there is no way to do this but the post is rather old (and also not an official statement)

So, is there a way to do this? Perhaps with a package or a --no-packages flag or some other trick?


BTW: for the sake of completeness, after applying the solution I found that there were two packages responsible for the lag: GitGutter and WordHighlight.


回答1:


Best thing I can thing of is to keep a list of the package names that you can copy and paste into your preferences file in the "ignored packages" section. If you have any sort of linter or code intel that might be the culprit if it's several thousand lines.

"ignored_packages":
[
    "SublimeCodeIntel",
    "Vintage"
]

Another thing to try would be to just make a copy of your Packages/Users/Package Control.sublime-settings file, then edit the original and delete all of the listed packages there and restart ST3. Definitely make that copy first in case it screws up.


EDIT Gabriel reports he ultimately solved the issue by copying the list of installed packages out of the Packages/Users/Package Control.sublime-settings file and paste them into the ignored_packages section of his preferences file.




回答2:


Packages can be simply disabled as follows

  1. Press Ctrl+Shift+P to open Command Palette
  2. Type disable, select Package Control: Disable Package
  3. This will give the list of all the Installed Packages, click on the one which you want to disable.

That's it. And you can enable disabled package anytime, just type enable in step:2.



来源:https://stackoverflow.com/questions/30856557/sublime-text-disable-all-packages

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!