天天看點

intellij IDE 快捷鍵(windows)

 Ctrl+Shift+空格

Ctrl+Alt+T  選中

ctrl+alt+o 去除沒有使用的import

Ctrl+W

 Ctrl+K 打開代碼送出頁面.

  Ctrl+F 搜尋,接着 Ctrl+R 替換

   Ctrl+Shift+R.全環境替換, Ctrl+Shift+F 全環境搜尋

   選中關鍵字  Ctrl+Alt+Shift+T,  牛逼了

 Ctrl+Alt+V  重構

  Ctrl+斜杠 and Ctrl+Shift+斜杠. 注釋

  alt+f1

  shirt+f1

  Ctrl+Shift+空格 

  Ctrl+空格.

  Ctrl+P  展示方法參數資訊

  Ctrl+Shift+Backspace (Navigate | Last Edit Location) brings 

  Use Ctrl+Shift+F7 搜尋某個關鍵詞目前檔案中使用情況,下一個 F3 上一個shift+F3 

  ALT+insert 自動生成函數

  Alt+Q (View | Context Info) to see the declaration of the current method without the need to scroll to it.

  Use Ctrl+J to complete any valid Live Template abbreviation if you don't remember it. For example, type it and press Ctrl+J to see what happens

  Use Alt+向上箭頭 and Alt+向下箭頭 keys to quickly move between methods in the editor.

  Ctrl+Shift+V  打開剪貼闆

 調試時,按住ALT,然後點選表達式,可以看到執行結果

  You can use the Extract Variable refactoring even on incomplete statements. Just press Ctrl+Alt+V, and choose the desired expression:

  To open any particular method or field in the editor quickly, press Ctrl+Alt+Shift+N (Navigate | Symbol) and start typing its nam

  Use Basic Completion (Ctrl+空格) within HTML, CSS and other files, for completing image file names.

  With a single keystroke, you can apply another code style/coloring scheme or keymap right from the editor. Just press Ctrl+後引号 (View | Quick Switch Scheme), to specify the scheme you want to change.

 使用 Ctrl+Shift+Enter, 快速補齊 as if, do-while, try-catch, return (or a method call) into a syntactically correct construct (e.g. add curly braces).

  Alt+Shift+F10 you can access the Run/Debug dropdown on the main toolbar, without the need to use your mouse.

  To quickly find and run an inspection, press Ctrl+Alt+Shift+I and start typing the name of the inspection or its group. Choose the desired inspection from the suggestion list and then specify the desired scope.

   Ctrl+Shift+I  迅速檢視選中内容的定義

   Alt+Shift+C 檢視工程中檔案增删修改情況

  Ctrl+Alt+Shift+C 複制引用位置

  ctrl+D 複制到下一行

   Shift+F6 (Refactor | Rename) 重構、重命名

   Ctrl+Shift+向上箭頭 or Ctrl+Shift+向下箭頭.  代碼下、上移動

   Ctrl+Alt+F7  全文查找

   Ctrl+shift+F7  選中某個關鍵字,檢視某個關鍵字,高亮顯示在目前檔案中的使用情況

    Ctrl+Shift+A   迅速找到相關操作

Ctrl+Click (on Windows) or Cmd+Click (on MacOS) a tab in the editor to navigate to any part of the file path. Select the necessary element in the drop-down, and the corresponding file path opens in an external browser (e.g., in the Explorer, if your OS is Windows).

 . With the caret at the class name in the editor, press Alt+Enter, and choose Create Test from the suggestion list:

 Use the Switcher (Ctrl+Tab) to switch between open files and tool windows. Keeping Ctrl pressed, use the Up and Down arrow keys, Tab or Shift+Tab, Alt for navigation; use Delete or BackSpace to close editor tab or hide a tool window.

 Fix doc comment 設定給類方法加注釋

Ctrl+斜杠 comments or uncomments the current line or selected block with single line comments (//...).

Ctrl+Shift+斜杠 encloses the selected block in a block comment ().

To uncomment a commented block press Ctrl+Shift+斜杠 anywhere inside it.

ctrl+alt+v  變量重構

Ctrl+Shift+V  打開複制面闆

Ctrl+D 生成相同一行代碼

Use the Tab key to move between the template fields. See File | Settings | Live Templates for more details. ****************tab鍵 預設功能

Ctrl+Shift+Backspace 回到最近代碼編輯處

 Ctrl+Shift+F7  選中關鍵字,此快捷鍵,高亮 顯示目前文檔中關鍵字使用情況 ,F3 找下個使用該關鍵字地方,shift+f3 找上一個

 ctrl+alt+t  将選中代碼,外面增加if,while等

  Alt+Q (View | Context Info) to see the declaration of the current method without the need to scroll to it.

  F2/Shift+F2查找文法錯誤  

   Ctrl+J to complete any valid Live Template abbreviation if you don't remember it. For example, type it and press Ctrl+J to see what happens.

 Alt+向上箭頭 and Alt+向下箭頭  在editor中,迅速在上下方法間切換.

 Ctrl+Shift+J 将兩行合并為一行,移除不必要的空格 

 Refactor | Copy 複制生成一個新的類

 調試期間 選中表達式,按 Alt+F8 檢視表達式執行結果

  Ctrl+Alt+Shift+N 直接查詢方法等關鍵字

   Ctrl+Shift+向上箭頭 or Ctrl+Shift+向下箭頭.  選中内容,上下移動位置

   Ctrl+U 大小寫轉換

Cmd + Shift + T作為類和測試之間的導航

 Alt+Home keyboard shortcut to show the navigation bar, and arrow keys to locate the necessary files or folders.

 To quickly find and run an inspection, press Ctrl+Alt+Shift+I and start typing the name of the inspection or its group. Choose the desired inspection from the suggestion list and then specify the desired scope.???

選中類名或接口名,ALT+ENTER  可以選擇建立子類、測試類等等

Use the Switcher (Ctrl+Tab) to switch between open files and tool windows. Keeping Ctrl pressed, use the Up and Down arrow keys, Tab or Shift+Tab, Alt for navigation; use Delete or BackSpace to close editor tab or hide a tool window.

There are two ways of closing all tabs in the editor, except the current one:

First, right-click the editor tab, and choose Close Others on the context menu.

Second, keeping the Alt key pressed, click   on the editor tab.

To compare two directories, select one or both of them in the Project view and press Ctrl+D.   對比差異

Lucene Solr

GeoHash)