- ctrl + shift + p
- Configure User Snippets
- select cpp.json
- copy and writing this code
{
"cpp snippet": {
"prefix": ">algorithm",
"body": [
"#include<iostream>",
"#include<vector>",
"#include<algorithm>",
"#include<stack>",
"#include<queue>",
"",
"using namespace std;",
"typedef vector<int> vi;",
"typedef deque<int> di;",
"typedef stack<int> si;",
"typedef queue<int> qi;",
"",
"int main() {",
"",
" return 0;",
"}"
],
"description": "Log output to console"
}
}