gpt4 book ai didi

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

转载 作者:行者123 更新时间:2023-12-04 20:07:24 26 4
gpt4 key购买 nike

每隔一段时间,我会打开 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/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com