zoukankan      html  css  js  c++  java
  • 创建template模板

    创建一个自己常用的快捷键的模板。

        1、选择window-->preferrence--搜索temp--java

      

      2、点击new

          

       3、根据自己的习惯起一个名字

       4、比如syso

      

       5、语法不会,就找一个你知道的把它拷贝下来,写在pattern中

         比如:

          System.out.println(${word_selection}${});${cursor}

         你想建立一个put方法:

                     ActionContext.getContext().put("${word_selection}${}",${word_selection}${});${cursor}

       这样你的方法实现了跟syso一样的功能。

    如果你想字符串直接选择对象,那么更改word_selection。为var

                     ActionContext.getContext().put("${var}${}",${var}${});${cursor}

      6、这样你敲put时就会显示自己的模板了。

    7、一回车就可以快捷添加了。

      

  • 相关阅读:
    Ubuntu 17 安装sublime
    ubuntu17 设置python3为默认及一些库的安装
    Java中内存分析(一)
    我的学习JavaEE路线
    我爱学习……
    HDU 4602
    K-special Tables
    Gym 100712A - Who Is The Winner
    UVA 1583
    水题 UVA 1586
  • 原文地址:https://www.cnblogs.com/liuyangfirst/p/6106679.html
Copyright © 2011-2022 走看看