Visitar URL original
cmakefmt Plugin - dprint - Code Formatter
// plugins

cmakefmt

CMake code formatter (cmakefmt).

Plugin that formats CMake files via cmakefmt.

Formats CMakeLists.txt, CMakeLists.txt.in, and .cmake files.

There is also a separate azais-corentin/cmakefmt plugin, which is configured under the "cmake" key.

Install and Setup

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

dprint add cmakefmt/cmakefmt

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

{
  "cmakefmt": {
    // cmakefmt config goes here
  },
  "plugins": [
    "https://plugins.dprint.dev/cmakefmt/cmakefmt-v2.4.0.wasm"
  ]
}

All plugins

Official Plugins

Community Plugins

Wrapper Plugins

Everything Else