Multiple right margins in Pycharm

风流意气都作罢 提交于 2019-12-06 19:16:25

问题


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.


回答1:


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 columns.




回答2:


It is not possible in Pycharm given its basic configuration (without some plugins). But I am afraid that even plugins for this feature does not exist for Pycharm. At least, I could not find it.

In this question you may probably find something helpful: https://superuser.com/questions/703425/intellij-ide-how-to-add-one-or-more-margins.




回答3:


This is not yet a feature of any of the Intellij platforms.

You can follow/vote for the ticket here https://youtrack.jetbrains.com/issue/IDEA-99875



来源:https://stackoverflow.com/questions/24125957/multiple-right-margins-in-pycharm

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!