Gabriel
Gabriel

Reputation: 42459

Sublime Text: disable all packages

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.

Upvotes: 32

Views: 13388

Answers (2)

Rob Wise
Rob Wise

Reputation: 5130

The best thing I can think 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 the listed packages there and restart ST3. Definitely make that copy first in case it screws up.


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.

Upvotes: 26

Rakesh
Rakesh

Reputation: 744

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.

Upvotes: 4

Related Questions