purty is supported via the editor's Format Code command. To format your code using purty, press Shift+Alt+F on Windows, Shift+Option+F on Mac, or Ctrl+Shift+I on Linux. You may also enable Format On Save in vscode settings.
Requirements
npm install purty or specify the location of the purty executable in the extension settings (vscode settings)