Using the User Interface (Button): Click on the Generate PLC Code button located in the Editor title menu.
Using the Command Palette: Press Ctrl+Shift+P (or Cmd+Shift+P on Mac) and type to Search for AutomationView: Generate PLC.
Ctrl+Shift+P
Cmd+Shift+P