Visitar URL original
WebAssembly Text Plugin - dprint - Code Formatter
// plugins

WebAssembly Text

wat_formatter (WebAssembly Text Format) wrapper plugin.

Wrapper plugin that formats WebAssembly Text Format code via wat_formatter, the formatter of wasm-language-tools. It runs wat_formatter's own code compiled to Wasm, so it formats exactly like the wasm-language-tools language server.

Formats .wat files.

Install and Setup

In your project's directory with a dprint.json file, run:

dprint add wat

This will update your config file to have an entry for the plugin. Then optionally specify a "wat" property to add configuration:

{
  "wat": {
    // wat_formatter's config goes here
  },
  "plugins": [
    "npm:@dprint/wat@0.1.1"
  ]
}

All plugins

Official Plugins

Community Plugins

Wrapper Plugins

Everything Else