문제

I import vector from std using

#include <vector>
using std::vector;

I do this specifically so I don't have to namespace vectors for increased readability. So it is supremely annoying that the C++ package in Sublime autocompletes to

std::vector<char> v;

Instead of just

vector

How do I disable this without disabling all autocompletion or losing C++ language support?

도움이 되었습니까?

해결책

Since you're using Sublime Text 2, it's quite easy. Click on Preferences -> Browse Packages... to open your Packages folder in your operating system's file explorer. Go to the C++ directory, delete the file named std-vector-(v).sublime-snippet, and you're all set.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top