Sublime Text:禁用所有包 [英] Sublime Text: disable all packages

查看:36
本文介绍了Sublime Text:禁用所有包的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用的是 Sublime Text 3083.

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.

我安装了 > 20 个软件包,我需要一种方法来一次禁用所有这些软件包,以检查此问题是否与软件包相关.

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.

我四处搜索,我知道你可以禁用包 一个一个 但是当安装了很多软件包时这并不好.根据 sublime 论坛中的这篇文章,有没办法,但是帖子比较老了(也不是官方声明)

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)

那么,有没有办法做到这一点?也许使用包或 --no-packages 标志或其他一些技巧?

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

顺便说一句:为了完整起见,在应用解决方案后,我发现有两个包导致了延迟:GitGutterWordHighlight.

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

推荐答案

我能想到的最好的事情是保留一个包名称列表,您可以将其复制并粘贴到忽略包"部分的首选项文件中.如果您有任何类型的 linter 或代码情报,如果它有几千行,这可能是罪魁祸首.

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"
]

要尝试的另一件事是复制您的 Packages/Users/Package Control.sublime-settings 文件,然后编辑原始文件并删除那里列出的所有软件包,然后重新启动 ST3.一定要先制作那个副本,以防万一它搞砸了.

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 报告说,他通过从 Packages/Users/Package Control.sublime-settings 文件中复制已安装的软件包列表并将它们粘贴到 ignored_pa​​ckages 中,最终解决了这个问题> 他的首选项文件的部分.

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.

这篇关于Sublime Text:禁用所有包的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆