shuzijun / leetcode-editor

Do Leetcode exercises in IDE, support leetcode.com and leetcode-cn.com, to meet the basic needs of doing exercises.Support theoretically: IntelliJ IDEA PhpStorm WebStorm PyCharm RubyMine AppCode CLion GoLand DataGrip Rider MPS Android Studio
https://plugins.jetbrains.com/plugin/12132-leetcode-editor
Apache License 2.0
3.75k stars 404 forks source link

Python3生成的代码不符合PEP8 #589

Closed danerlt closed 2 years ago

danerlt commented 2 years ago

Describe the bug

设置中CodeType,随便选择一个题目,生成的的代码,默认生成的方法是驼峰命名法, image image

Software versions(Help -> About)

问题1: Python PEP8中 方法建议使用下划线分隔,这个要怎么配置? 问题2: 能否自动导入tying相关的包

  # leetcode submit region begin(Prohibit modification and deletion)
class Solution:
    def heightChecker(self, heights: List[int]) -> int:

    # 能否自动生成下面的格式
    def height_checker(self, heights: List[int]) -> int:
        pass
# leetcode submit region end(Prohibit modification and deletion)
shuzijun commented 2 years ago
  1. 不支持, leetcode submit region xxx 之间的代码是力扣提供的,方法名与参数都不能修改
  2. 如果是from xxx import xxxx的导入方式,参考自定义代码格式
danerlt commented 2 years ago

@shuzijun 谢谢解答