A
A
Alexey Semyonov2020-05-29 17:01:45
PyCharm
Alexey Semyonov, 2020-05-29 17:01:45

How to convert PEP8 code on click in PyCharm?

Hello.
Is it possible somehow in PyCharm by pressing a button or a combination, completely all the code in the file can be brought to the PEP8 standard. That is, to remove extra enters, line breaks, remove unnecessary imports and stuff like that.
There is a combination alt + ctrl + o, but it only drops unnecessary imports.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
K
Kostya_KD, 2020-05-29
@Kostya_KD

alt + ctrl + lwill fix formatting problems, but the code will not lead completely to pep8, I
still recommend installing some kind of linter that will point out the remaining problems, for example pylint

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question