V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
爱意满满的作品展示区。
HmyBmny

一条命令配置 VIM IDE 现在能够自动调整代码风格啦

  •  
  •   HmyBmny · Sep 28, 2016 · 3934 views
    This topic created in 3507 days ago, the information mentioned may be changed or developed.

    先来张整体效果图(没有属于自己的像样的项目代码2333):

    效果图

    在 normal 或者 visual 模式下按 <12> 即可调整代码风格(下图不是我的,是我从插件作者仓库拿的,地址也没变):

    效果图

    地址: https://github.com/HmyBmny/vimrc

    5 replies    2016-10-03 10:27:56 +08:00
    tonghuashuai
        1
    tonghuashuai  
       Sep 29, 2016
    个人认为格式正确的代码是写出来的,不是自动调出来的,正确写出来就是这样的,那这样的工具就用不到了……
    Override
        2
    Override  
       Oct 2, 2016 via Android
    @tonghuashuai 这个看语言吧
    HmyBmny
        3
    HmyBmny  
    OP
       Oct 3, 2016
    @tonghuashuai 如果习惯好的话确实用不上这个。。。
    HmyBmny
        4
    HmyBmny  
    OP
       Oct 3, 2016
    @tonghuashuai 但有一个总是好的吧
    fuxkcsdn
        5
    fuxkcsdn  
       Oct 3, 2016 via iPhone
    @tonghuashuai 适合用来调别人的代码 XD
    每次看别人的代码都有先把他的代码格式化再看的冲动
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   881 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 34ms · UTC 21:31 · PVG 05:31 · LAX 14:31 · JFK 17:31
    ♥ Do have faith in what you're doing.