It’s the same with your favorite word processor: while it can correct your misspellings or even grammar errors in English or other languages, your word processor does not understand anything from the text and will not execute any instructions in English that you may type with it.
A coding editor like vscodeVisual Studio Code, atomAtom, sublimeSublime Text and others are exactly like that: they do absolutely not know what the code is supposed to achieve. Nevertheless, they are able to parse the grammar to see if what you type is compliant with your programming language grammar.