Skip to content

Latest commit

 

History

History
10 lines (7 loc) · 650 Bytes

README.md

File metadata and controls

10 lines (7 loc) · 650 Bytes

Good and Bad Formatter

This is a sample for a simple (and stupid) formatter that integrates into VS Code in two way: Once as a command and once (better) via the formatter-api. The latter as the following advantages:

  • is less code
  • is invoked from the formatter actions and keybindings
  • is invoked from format on save
  • is future proof for things like format all files in folders etc