CppCXY / EmmyLuaCodeStyle

fast, powerful, and feature-rich Lua formatting and checking tool.
MIT License
139 stars 27 forks source link

Disable codes format in a block #164

Closed godotc closed 8 months ago

godotc commented 8 months ago

If I want format a document, except some rows of codes in a block/region. Any configuration for it?

Like the clangd:

// clang-format on
...
Codes here will be ignore by the formatter
...
// clang-format off
CppCXY commented 8 months ago

---@format disable will disable the formatting under it within the same block. ---@format disable-next will disable the formatting under it, but only one syntax element but I donot implement ---@format on

godotc commented 8 months ago

Thanks! Helps a lot:)