python - IntelliJ IDE: How to add one or more margins

05
2014-04
  • Paul

    I like PyCharm a lot. I write a good chunk of python for my job. I want to conform to PEP8 and it's line length suggestions as best as possible. Having right margins for 72 characters, 79 characters, and 99 characters is very important to me. However, within the current IntelliJ family of IDEs, a user can only specify one right margin as shown by this screenshot.

    Does anyone know of a plugin that allows a user to add more right margins? Or more right rulers (I don't need/want my code to be able to wrap at each vertical line)?

  • Answers
  • Matthew Williams

    The only thing I was able to find is that with sublime text you can specify as many margins as you want, it is called rulers though. But Sublime text is not an IDE and doesn't implement as many features as PyCharm. I guess multiple margins isn't a feature that comes with IntelliJ products.


  • Related Question

    ide - How to avoid quote separation for Clojure when using Intellij IDEA's "reformat code"?
  • Otavio Macedo

    I am using Intellij IDEA 10.5.2 with the La Clojure. In Clojure, the quote (') character is accepted and is used in operators such as *' to multiply arbitrarily large numbers. The problem is that IDEA's "Reformat code" operation separates the quote character from its previous character. In the case of this multiplication operator, the result is * ', breaking the code. For example, a *' b becomes a * 'b, which means a completely different thing.

    Is there any way to configure the reformatting behavior so to avoid this?


  • Related Answers
  • CrazyCoder

    I've reported it to the issue tracker, please watch/vote.