Pycharm 中的多个右边距 [英] Multiple right margins in Pycharm
问题描述
我正在学习 Pycharm 社区版 3.4,我想知道是否有可能只为评论和文档字符串设置正确的边距,以及其余代码的常规边距.
我之所以这么问是因为我试图坚持 PEP8 准则,即每条评论 72 个字符,常规代码 79 个字符.我不断更改 72/79 之间的右边距以确保一切正常,但我觉得效率不高.
提前致谢.
此功能是
I am learning Pycharm Community Edition 3.4 and I was wondering If it was possible to have a right a margin for comments and docstring only, additionally to the regular margin for the rest of the code.
I ask because I am trying to stick to the PEP8 guideline of 72 characters per comment and 79 for regular code. I am constantly changing the right margin between 72/79 to make sure everything is fine but I don't find that very efficient.
Thanks in advance.
This feature was announced in September 2017.
Go to File -> Settings -> Editor -> Code Style -> Hard wrap at
and Visual guides
. For visual guides, you can enter multiple values separated by commas.
这篇关于Pycharm 中的多个右边距的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!