V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
TaoQAQ
V2EX  ›  Android

在 AS 上,怎样自动补全出这种变量形式?

  •  
  •   TaoQAQ · Oct 20, 2016 · 13880 views
    This topic created in 3478 days ago, the information mentioned may be changed or developed.
    如图中所示,只能补全成开头小写的驼峰变量名,不能补全成 google 提倡的命名形式。

    6 replies    2016-10-20 14:13:55 +08:00
    paragon
        1
    paragon  
       Oct 20, 2016
    可以的 但现在 IDE 已经可以分析变量是不是 field 了 颜色都会和其他的不一样 ~
    TVBG
        2
    TVBG  
       Oct 20, 2016
    sherlocktheplant
        3
    sherlocktheplant  
       Oct 20, 2016

    ![]( )
    blackbbc
        4
    blackbbc  
       Oct 20, 2016
    @TaoQAQ
    我记得 Google 已经不提倡匈牙利命名法了!
    https://google.github.io/styleguide/javaguide.html#s5-naming
    又退回了驼峰式命名法
    pagxir
        5
    pagxir  
       Oct 20, 2016 via Android
    驼峰好,支持驮峰
    kassadin
        6
    kassadin  
       Oct 20, 2016
    确实又回驼峰了,别折腾了
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   938 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 50ms · UTC 20:32 · PVG 04:32 · LAX 13:32 · JFK 16:32
    ♥ Do have faith in what you're doing.