IDEA后綴補全及快捷鍵


代碼快速生成

 /**
     * 代碼快速生成,快捷鍵
     * 0、psvm             快速生成 main方法
     * 1、sout             生成輸出語句
     * 2、fori             for循環生成
     * 3、.for             數組/集合.for 快速生成增強fouEach循環
     * 4、ctrl+alt+t       生成控制流程,if/if else /while /do while 
     * /for /try catch /try catch finally/synchronized/Runnadble
     * 5、alt+inster       生成構造器,Constructor Getter Setter toString的覆蓋等。。。
     * 6.ctrl+D 復制當前行到下一行
     * 7.ctrl+shift+/ 塊狀注釋
     */
    //main方法:psvm
    public static void main(String[] args) {
        //快速打印:sout
        System.out.println("");
        //fori
        for (int i = 0; i < 10; i++) {

        }
        String[] arrs = {};
        for (String arg : args) {

        }
        /**
         * 快捷鍵:必背
         * 1、ctrl+D     復制光標所在行
         * 2、ctrl+F     查文件
         * 3、ctrl+H     查看類體系結構
         * 4、ctrl+N     查類文件
         * 5、ctrl+O     復寫父類的方法展示
         * 6、ctrl+X     剪切,用來刪除
         * 7、ctrl+F     查文件
         * 8、ctrl+Z     撤銷
         * 9、ctrl+Shit+Z 反撤銷
         * 0、ctrl+F12   查找當前文件的,所有方法
         * 1、ctrl+Enter 修改報錯,補全代碼
         * 2、ctrl+Alt+B 展示接口的實現類
         * 3、ctrl+Alt+← 返回上次光標位置
         * 4、ctrl+R     文本替換
         * 5、ctrl+Shit+R 全局文本替換
         * 6、ctrl+Shit+/ 代碼快注釋
         * 7、ctrl+//    代碼單行注釋
         */
        System.out.println("背快捷鍵,,,效率提高10倍!!!");
        System.out.println("背快捷鍵,,,效率提高10倍!!!");
    }

后綴補全

  1. var 聲明

img

  1. null 判空

img

  1. notnull 判非空

img

  1. nn 判非空

img

  1. for 遍歷

IDEA后綴補全-7

  1. fori 帶索引的遍歷

img

  1. not 取反

img

  1. if 條件判斷

img

  1. cast 強轉

img

  1. return 返回值

img

1594712499627


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM