Dealing with PEP8 contraventions one by one

已回答

Started using Pycharm yesterday on a Mac. I believe that all my settings are default settings, though I may have set some of them inadvertently.

While editing my Python3 program, Pycharm showed a column on the right with contraventions of PEP8 guidelines.

1) The PEP8 comments displayed (Command F1). But nothing happened when I pressed the Command key (4-leaved clover) and F1 simultaneously. What is (Command F1) supposed to do?

2) I would like to go systematically through the PEP8 contraventions, changing my code when appropriate, and turning off the PEP comment if inappropriate. How do I do this?

0

1) You can check the shortcut assignment in Preferences | Keymap:

By default Cmd+F1 is Error Description action.

2) See https://www.jetbrains.com/help/pycharm/running-inspections.html

0

Try File|Settings|Inspections|Python. There you are!

(Probably fastest, if you enter 'Inspections' in the search field of the Settings dialog.)

 

0

请先登录再写评论。