Skip to content
| Marketplace
Sign in
Visual Studio Code>Programming Languages>C++ Auto IncludeNew to Visual Studio Code? Get it now.
C++ Auto Include

C++ Auto Include

Pratyush Ranjan

|
4 installs
| (1) | Free
Automatically detect STL symbols and add the correct #include headers while coding in C++.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

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

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

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2026 Microsoft