My templates files extensions are .html and i cannot use autocompletion of my IDE which require .twig extension to do so
are you using it with express.js?
if so, you can use it like this:
app.engine('twig', cons.swig);
app.set('view engine', 'twig');