I am experimenting with different python formatters and would like to increase the max line length. Ideally without editing the settings.json
file. Is there a way to achieve that?
![select formatter](https://i.stack.imgur.com/a1Nax.png)
对于所有三个格式化程序,可以通过从设置传入的附加参数来增加最大行长度,即:
- autopep8 参数:
--max-line-length=120
- 黑色参数:
--line-length=120
- yapf 参数:
--style={based_on_style: google, column_limit: 120, indent_width: 4}
希望对将来的人有所帮助!
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)