TaoQAQ
V2EX  ›  Android

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

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

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

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