r/FlutterDev • u/yaonek • Jul 08 '26
Discussion VS Code Dart Analyzer is much slower than Android Studio on a high-end laptop. Anyone else?
I've been trying to use VS Code for Flutter development, but the Dart analyzer and code completion are noticeably slower than Android Studio.
My laptop specs:
- Intel i7 13th Gen
- 32 GB DDR5 RAM
- RTX 4050
I only have the standard Flutter/Dart extensions installed (nothing unusual), and I even increased the analyzer heap size using:
dart.analyzerVmAdditionalArgs: ["--old_gen_heap_size=4096"]
Unfortunately, it didn't make any noticeable difference.
The strange part is that Android Studio runs perfectly. Code analysis, autocompletion, and navigation are all fast and responsive, while VS Code often takes several seconds to update diagnostics or provide suggestions.
I know VS Code is supposed to be more lightweight, so I'm wondering if I'm missing something.
Has anyone experienced the same issue? If you fixed it, what was causing it? Any settings, extensions, or other tweaks that helped?
I'd really like to stick with VS Code, so I'd appreciate hearing about your experience.
Edit / Update: I finally found the cause.
In my case, the issue was Microsoft Defender. After following the Dart team's recommendations and excluding the recommended folders from Defender (Dart analysis server cache, Pub cache, and my Flutter project directories), the Dart analyzer and IntelliSense became consistently fast again.
If you're experiencing similar issues on Windows, I highly recommend checking the official guide:
https://dart.dev/tools/analyzer-performance#security-software-on-windows