ide - Sublime Text 3 中的这个百分比是多少?

标签 ide sublimetext3

每隔一段时间,我会打开 Sublime Text,我的 CPU 会开始疯狂,温度上升,Sublime Text 右下角的这个百分比会缓慢更新。我已经尝试使用谷歌搜索来寻找答案,但无济于事。有谁知道百分比代表什么?它是在索引我的文件还是什么?我该如何更新这个设置? Screenshot of Sublime Text 3 Percentage

最佳答案

是的,百分比是索引状态。可以从 Help menu -> Indexing Status... 中查看更多详细信息。此菜单项是在 build 3125 中添加的。

有多种设置可以控制索引,所有这些都必须进入您的用户首选项 - 它们目前在项目设置中不起作用。 相关问题:


// File indexing parses all files in the side bar, and builds an index of
// their symbols. This is required for Goto Definition to work.
"index_files": true,

// Set the number threads to use for indexing. A value of 0 will make
// Sublime Text guess based on the number of cores. Use the index_files
// setting to disable all workers.
"index_workers": 0,

// index_exclude_patterns indicate which files won't be indexed.
"index_exclude_patterns": ["*.log"],

// These files will still show up in the side bar, but won't be included in
// Goto Anything or Find in Files
"binary_file_patterns": ["*.jpg", "*.jpeg", "*.png", "*.gif", "*.ttf", "*.tga", "*.dds", "*.ico", "*.eot", "*.pdf", "*.swf", "*.jar", "*.zip"],

由于 node_modules 文件夹往往很大,这可能是您的索引需要一段时间并使用大量系统资源的原因。然而,此刻,index_exclude_patterns only applies to file names , 所以如果你想阻止 node_modules 文件夹的索引,你需要将它添加到 binary_file_patterns 中,尽管它的名字,也对文件夹进行操作。

例子:

"binary_file_patterns": ["node_modules/", "*.jpg", "*.jpeg", "*.png", "*.gif", "*.ttf", "*.tga", "*.dds", "*.ico", "*.eot", "*.pdf", "*.swf", "*.jar", "*.zip"]

关于ide - Sublime Text 3 中的这个百分比是多少?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40792819/

相关文章:

go - golang 的 Geany 符号列表

python - Sublime Text 3 subl 命令在 Windows 10 中不起作用

editor - 在 Atom.io 中选择引号、括号等之间的所有文本

wordpress - SublimeLinter:警告:phpcs 已停用,无法找到 'phpcs'

javascript - 我可以通过 TSLint 或 tsconfig 阻止 IDE 自动包装属性吗?

eclipse - 如何在 Eclipse 中重新缩进所有代码?

c - 我如何在没有 IDE 的情况下找到声明/定义?

sublimetext3 - Sublime Text,自动修复 "Missing semicolon"

sublimetext3 - 如何让 Sublime Text 3 在新选项卡中打开文件而不是在当前选项卡中打开它?

ide - SubLime文字2片段的toLowerCase或大写功能