代码里面忽略格式化命令的注释

0

Python

# fmt: off
# fmt: on

Java

// @formatter:off
// 注意冒号后面不能含有空格
// @formatter:on

C++

// clang-format off
// clang-format on