Hi,
The default std::vector and std::map snippets for C++ have a fatal flaw for me.
The input
std::vec<tab>
expands to
std::std::vector<char> v;
which does not make sense.
I tried to follow the advice in this thread and override the default snippet with my own.
- Unzipped /opt/sublime_text_3/Packages/C++.sublime-package
- Copied extract/Snippets/std-vector-(v).sublime-snippet to ~/.config/sublime-text-3/Packages/User/
- Changed the contents to:
`
std::vector
`
4. Restarted Sublime Text
This changed nothing. Unfortunately, I am not a ST power user and I don’t really know how it loads its snippets, so this was mostly guesswork.
“Just don’t press Tab/Enter on the snippet” => I can’t help myself! ST’s tab-complete is so helpful with recurring words, I just expect it to complete “vector” for me.
Please point me to the docs on how to disable the snippet.