Android & vue Live Template

Android

自定义Live Template

代码折叠

abbreviation: mcb

Desc: Mark Code block

template text

// <editor-fold defaultstate="collapsed" desc="$description$">
    $SELECTION$
// </editor-fold>

scope: java

新建跳转

abbreviation: ni

Desc: new intent for Activity

template text:

public static Intent newIntent($args$){
  return new Intent(App.getContext(),$class$.class);
}

scope: java

Android Studio 内置

显示某个类

abbreviation: visible

Desc: Set view visibility to VISIBLE

template text:

$VIEW$.setVisibility(View.VISIBLE);

scope: java