TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Ask HN: Why does VSCode fully drain MacBook Pro (M2) battery in 2hrs?

4 pointsby nomilkabout 1 year ago

5 comments

animuchanabout 1 year ago
I second the "check the extensions" answer, because for me it sure doesn't — when working from home, I only charge a similar machine (M2 MBP) at night, so it's good for at least 9 hours of work, where work == VS Code + Slack + Zoom.
jotaenabout 1 year ago
This is more like an Ask HN, isn’t it?<p><a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;showhn.html">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;showhn.html</a>
评论 #39927814 未加载
FBISurveillanceabout 1 year ago
I suggest you to check your extensions. Local LLMs, language server bugs, maybe even a compromised extension that mines crypto?
评论 #39927738 未加载
nomilkabout 1 year ago
FWIW, I rebooted and VSCode&#x27;s energy usage is back to normal (less than 1&#x2F;10th of what it was while it was consuming extremely high amounts of energy).<p><a href="https:&#x2F;&#x2F;imgur.com&#x2F;rFXkoin" rel="nofollow">https:&#x2F;&#x2F;imgur.com&#x2F;rFXkoin</a>
nomilkabout 1 year ago
According to 9to5mac [1], my 2023 16&quot; MBP should have around 14 hours of &quot;wireless web battery&quot;.<p>Today it lasted 2 hours flat. I had around 5 smallish files open in vscode and wasn&#x27;t doing anything at all interesting or intensive (no docker, no automated testing, just writing code, and pretty slowly, frankly).<p>[1] <a href="https:&#x2F;&#x2F;9to5mac.com&#x2F;2023&#x2F;10&#x2F;30&#x2F;m3-macbook-pro-battery-life&#x2F;" rel="nofollow">https:&#x2F;&#x2F;9to5mac.com&#x2F;2023&#x2F;10&#x2F;30&#x2F;m3-macbook-pro-battery-life&#x2F;</a>