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

查看:283
本文介绍了什么是“省电模式"?在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.

您应该发现打开省电功能后,语法错误仍然会突出显示,但是代码结构比较复杂,例如缺少文档块,条件语句中的赋值等不会(假设您启用了这些检查).这意味着您可以在使用笔记本电脑时节省电池电量,并通过关闭省电模式一到两分钟或使用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->Run inspection by name...(如果需要),可以选择按需单独运行它们.更多信息此处.

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&同样是AppCode.

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

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

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