Limited Time Offer!
For Less Than the Cost of a Starbucks Coffee, Access All DevOpsSchool Videos on YouTube Unlimitedly.
Master DevOps, SRE, DevSecOps Skills!

1. Free Up C: Drive Space Using Disk Cleanup
Steps:
- Press
Windows + R
, typecleanmgr
, and press Enter. - Select
C:
drive. - Click on “Clean up system files”.
- Check the following:
- Downloaded Program Files
- Temporary Internet Files
- Windows Update Cleanup
- Delivery Optimization Files
- Temporary Files
- Thumbnails
- Recycle Bin (if safe to delete)
- Click OK, then Delete Files.
Tip: This frees up system cache without touching your Flutter, VS Code, or project files.
2. Move Android SDK & Emulator Files to D: Drive
Why:
Flutter and Android emulators use space on C:
by default. Moving these to D:
can free up 10โ20 GB and reduce disk I/O lag.
Steps:
- Close VS Code and Android Studio.
- Copy these folders to D:
- From
C:\Users\<YourName>\.android
toD:\Android\.android
- From
C:\Users\<YourName>\AppData\Local\Android
toD:\Android\sdk
- From
- Set environment variables:
- Press
Windows + R
, typesysdm.cpl
, go to Advanced > Environment Variables - Add or update these user variables:
ANDROID_SDK_ROOT = D:\Android\sdk
ANDROID_AVD_HOME = D:\Android\.android\avd
- Press
- Restart your PC.
3. Exclude Heavy Folders from VS Code File Watcher
Why:
VS Code watches all files by default, causing CPU/RAM usage to spike with large folders like build
, node_modules
, and .gradle
.
Steps:
- Open VS Code.
- Press
Ctrl + Shift + P
โ “Preferences: Open Settings (JSON)” - Paste this inside your JSON file:
"files.watcherExclude": {
"**/.git/objects/**": true,
"**/.git/subtree-cache/**": true,
"**/.hg/store/**": true,
"**/.dart_tool/**": true,
"**/build/**": true,
"**/.gradle/**": true,
"**/android/.gradle/**": true,
"**/android/app/build/**": true,
"**/ios/Flutter/Flutter.framework/**": true,
"**/ios/Pods/**": true,
"**/.idea/**": true,
"**/.vscode/**": true,
"**/node_modules/**": true
}
4. Reduce Flutter Analyzer & Debug Load in VS Code
Add this to the same settings.json
file to improve performance further:
"dart.previewFlutterUiGuides": false,
"dart.previewFlutterUiGuidesCustomTracking": false,
"dart.debugSdkLibraries": false,
"dart.debugExternalLibraries": false,
"dart.analysisExcludedFolders": [
"build",
".dart_tool",
".idea",
".vscode",
"android/app/build"
]
5. Disable Unwanted Startup Applications
Steps:
- Press
Ctrl + Shift + Esc
to open Task Manager. - Go to the Startup tab.
- Disable items you don’t need on boot like Teams, Discord, OneDrive, etc.
6. Set Windows to High Performance Mode
Steps:
- Go to
Settings > System > Power & Battery > Power Mode
. - Set to Best Performance.
- If youโre on a laptop, ensure itโs plugged in while emulating.
7. Keep Drivers and Firmware Updated
Use Intel Driver & Support Assistant to check and install the latest:
- Intel Graphics Driver
- Chipset
- BIOS (via manufacturer)
Also ensure:
- Windows 11 is fully updated (
Settings > Windows Update
) - Flutter SDK and Dart SDK are on the latest stable version
8. Optional: Use Physical Android Device
Running your app on a real Android device is faster and more stable than using an emulator.
Steps:
- Enable Developer Options on your phone.
- Turn on USB Debugging.
- Connect via USB.
- In VS Code, run:
flutter devices flutter run
Summary of Improvements
Task | Impact | Risk Level |
---|---|---|
Disk Cleanup | High | Safe |
Move SDK/AVD to D: | High | Safe |
Watcher Exclude in VS Code | Medium | Safe |
Disable Startup Apps | Medium | Safe |
Set Best Performance Mode | Medium | Safe |
Use Physical Device | High | Safe |