Shortcut in vs code to write input statement of java

You can use the type command:

{
  "key": "ctrl+i j",  // or any other combo
  "command": "type",
  "args": { "text": "Scanner sc = new Scanner(System.in);" },
  "when": "editorTextFocus"
}