in vscode Autocompletion does not occur when manipulating the dome

const h1 = document.querySelector(‘#hi’);

h1.styl = “red” –> not auto-completed


I would like to autocomplete style. Please tell me how to solve it.

I am aware that auto-completion is not possible when manipulating the DOM with a query selector because it does not recognize whether it is a node or an element, but I still want it to be auto-completion.

I looked into several extensions.

Is there a solution?

Sorry for my poor English….