zoukankan      html  css  js  c++  java
  • IDEA使用设置

    IDEA版本为2017.2.1

    1.设置主题

    File->Settings->Appearance,界面如下

    2.修改快捷键-Eclipse方式

    File->Settings->Keymap,界面如下

    3.其他快捷键补充

    • alt+insert:插入常用方法,比如get、set、构造方法等。
    • psvm::main()方法,其实就是每个public static void main每个单词首字母。
    • sout:System.out.println()。
    • alt+F1:快速定位,比如定位代码所在工程位置,或文件系统中位置(show in explorer)

    4.class文件模板

    file->settings->editor->File and Code Templates

    模板内容:

    #if (${PACKAGE_NAME} && ${PACKAGE_NAME} != "")package ${PACKAGE_NAME};#end
    
    /**
     * Created with IntelliJ IDEA.
     * User: ${USER}
     * Date: ${DATE}
     * Time: ${TIME}
     * To change this template use File | Settings | File Templates.
     * Description: 
     */
    public class ${NAME} {
    }

    创建新类:

    package com.demo.quickStart.dao;
    
    /**
     * * Created with IntelliJ IDEA.
     * * User: wsy
     * * Date: 2017/9/18
     * * Time: 15:31
     * * To change this template use File | Settings | File Templates.
     * * Description:
     * 
     */
    public class Test {
    }

    5.idea插件使用

    file->settings->plugins

    推荐两个插件:

    1)findbugs-idea:扫描代码中可存在的问题。

    2)free-mybatis-plugins:Mapper接口方法跳转到对应xml的SQL位置。

    6.自定义代码模板

    file->settings->editor->live templates

  • 相关阅读:
    Redis的特点什么是?
    Linux---用户和用户管理--用户配置文件
    python---模仿键盘
    Linux---脚本安装包
    python---创建句柄
    python---模仿鼠标悬停 move_to_element/perform/context_click
    python---总结所学元素及方法
    python---关闭 close,quit
    python---截屏
    python---前进和后退 back/forward
  • 原文地址:https://www.cnblogs.com/weixupeng/p/8547589.html
Copyright © 2011-2022 走看看