爱意满满的作品展示区。
guyskk

分享一个格式化 Python 代码的 Atom [插件的插件]

  •  1
     
  •   guyskk ·
    guyskk · Apr 17, 2017 · 3662 views
    This topic created in 3336 days ago, the information mentioned may be changed or developed.

    https://github.com/Glavin001/atom-beautify 增加了一个 pybeautifier 格式化器,通过 TCP server 来格式化代码,执行的时候不需要创建新进程,所以速度比原来的 autopep8 和 yapf 快很多。

    PR 在这: https://github.com/Glavin001/atom-beautify/pull/1330 ,昨天刚合并,自己用了好几个月了
    Server 代码在这: https://github.com/guyskk/pybeautifier

    快速上手:

    1. 安装 atom-beautify ,并选择 pybeautifier 作为默认格式化器
    2. pip3 install pybeautifier autopep8
    3. 启动 Server: pybeautifier 或者 pybeautifier -d (后台进程)
    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3014 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 36ms · UTC 04:13 · PVG 12:13 · LAX 21:13 · JFK 00:13
    ♥ Do have faith in what you're doing.