How does vscode set the shortcut key F12 to open the specified browser?

for example, I want to press F12 to open cent brower, and F4 to open IE,. How can I set it? What plug-ins can be used to implement it?

Mar.10,2021

is difficult, but there is a plug-in called open in browser,
that right-clicks on the file after installation.
can give it a try.

Menu