C++ Auto Include
A Visual Studio Code extension that automatically inserts the correct STL #include header when you type or select STL symbols in C++ files.
No more forgetting #include <map> or #include <algorithm>. Just type and code.
Features
- Auto-add missing
#include for common STL symbols
- Autocomplete suggestions with header info
- Quick Fix lightbulb to add missing include
- Smart include placement (after includes, before
using namespace std)
- Skips auto-include if
#include <bits/stdc++.h> is present
Demo

Examples
unordered_map → #include <unordered_map>
vector → #include <vector>
priority_queue → #include <queue>
sort → #include <algorithm>
Settings
cppAutoInclude.autoAddOnTyping (default: true)
cppAutoInclude.enableLightbulb (default: true)
cppAutoInclude.skipBitsStdcpp (default: true)
License
MIT © Pratyush Ranjan
| |