在PhpStorm中选择性地禁用代码重新格式化提交?

时间:2016-05-10 13:27:02

标签: phpstorm restructuredtext

我正在使用PhpStorm 10.0作为PHP项目,里面有一个Sphinx documentation目录,包含源*.rst文件。

当我提交这些.rst文件时,使用"重新格式代码"选中选项后,PhpStorm将删除.rst文件中的缩进。由于Sphinx依赖于这些缩进,我不能再构建文档......

我想保留"重新格式化代码"检查,因为它对其他类型的文件(php,js等)有用,但禁用重新格式化.rst文件。

有办法做到这一点吗?或者禁用整个documentation目录的重新格式化?

0 个答案:

没有答案