Make autocompletion behave more like IDE