![]() Use of autopep8 in pycharm: edit a new Python file in Pycharm, edit some code that does not conform to the style of pep8 place the mouse in the editor of the file right key External Tools click Autopep8.Click Output Filters Add, and enter in the dialog box: Regular expression to match output: `FILE_PATH$\: $LINE$\: $COLUMN$\.*` Parameters:`-in-place -aggressive -aggressive $FilePath$` Programs: `autopep8'(provided you have installed it) Tools Extends Tools Click on the plus sign.How do you change the code to conform to the specifications and remove these ugly wavy lines? The following steps are described: 2.1 Installation of autopep8ĬMD window input: pip install autopep8 2.2 Install autopep8 configuration in Pycharm PycharmItself is pep8Style detection, when you knock code does not conform to the specification, there will be underlined wavy line prompt. PEP 8 official document – Style Gu ide for Python Code.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |