什么是“省电模式"?在 IntelliJ IDEA 和其他 Jetbrains IDE 中? [英] What is "Power Save Mode" in IntelliJ IDEA and other Jetbrains IDEs?

查看:41
本文介绍了什么是“省电模式"?在 IntelliJ IDEA 和其他 Jetbrains IDE 中?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我看不到任何现成的 Google 搜索结果可以回答这个问题.它是什么,有什么用途?

I see no readily available Google search results that answer this question. What is it, and what is it used for?

推荐答案

这是一个设置,可在您键入时阻止 IDE 在后台自动执行全范围耗电代码检查.

It's a setting to stop the IDE from automatically performing the full range of battery-hungry code inspections in the background as you type.

您应该会发现,在打开 powersave 的情况下,语法错误仍会突出显示,但代码结构不明确,例如缺少文档块,条件语句中的赋值等不会(假设您启用了这些检查).这意味着您可以在使用笔记本电脑时节省电池电量,并通过关闭省电模式一两分钟或使用 Code->Inspect code... 选择仅偶尔运行检查看看有什么需要注意的.

You should find that with powersave turned on, syntax errors will still get highlighted, but iffy code constructs e.g. missing docblocks, assignment inside conditional statements etc will not (assuming you have those inspections enabled). This means that you can save battery power when using your laptop and choose to run the inspections only occasionally by turning power save mode off for a minute or two, or using Code->Inspect code... to see what needs attention.

请参阅Settings->Inspections 以了解您是否可以在没有特定检查的情况下生活,这取决于您使用的语言.如果您喜欢使用Code->按名称运行检查...,如果您需要特定的,您可以选择按需单独运行它们.更多信息此处.

See Settings->Inspections to find out whether you can live without the specific inspections, which will depend on what language you are using. You can choose to run them individually on demand if you like using Code->Run inspection by name... if there are specific ones you need. More info here.

当然,这也适用于 RubyMine、PHPStorm、PyCharm、WebStorm &应用代码也是如此.

Naturally, this also applies to RubyMine, PHPStorm, PyCharm, WebStorm & AppCode as well.

这篇关于什么是“省电模式"?在 IntelliJ IDEA 和其他 Jetbrains IDE 中?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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