# IntelliJ IDEA - Get Started ###### tags: `IntelliJ` [TOC] # Basic ## Show Context Actions ALT + ENTER ## Find Actions You can either find files or actions you want to do. CTRL + SHIFT + A || double shift ![](https://i.imgur.com/eZkiF5v.png) ### Example Type about + enter ![](https://i.imgur.com/OSmYita.png) ## Search Everywhere First we have to press **CTRL + SHIFT + A || 2x SHIFT** to open searcher. If we want to check up in all files, such as inside libraries, then we have to change **Project Files** filter to **All Places**. >![](https://i.imgur.com/nzbxJcN.png)[color=lightblue] **Note:** Press **Ctrl + Q** to preview available documentation. ## Word Selection By using **CTRL + W** we can select the word under the caret. And Pressing **CTRL + W** we can select even more than before. >Amount of press times, to select: >1. Word under caret. >2. The whole String. >3. Whole String with quotes. >4. Whole Parameter. >5. Whole call.[color=orange] If we want to deduct selection back to previous selection, we can use **CTRL + SHIFT + W**. **Example:** >![](https://i.imgur.com/TAaSSzS.png)[color=orange] ## Comment line (註解) Use **CTRL + /** to comment/uncomment the line you want, and by selecting several lines at same time, you can just comment them out with the same method. ## Duplicate/Delete Line **CTRL + D** to dupplicate a line. The caret can be anywhere in the line to duplicate it. **CTRL + Y** to delete a line. ## Move Code Fragments ### Line Movement **ALT + SHIFT + ↑** > Move line up by one line **ALT + SHIFT + ↓** > Move line down by one line ### Method Movement The caret must be on the method header to make this movement. **CTRL + SHIFT + ↑** > Move method up **CTRL + SHIFT + ↓** > Move method down ## Collapse/Expand regions ### Single region **CTRL + MINUS** > Collapse the region the caret is. **CTRL + PLUS** > Expand the region the caret is. ### All regions in the file **CTRL + SHIFT + MINUS** > Collapse all regions. **CTRL + SHIFT + PLUS** > Expand all regions. ## Wrap We can wrap lines with **CTRL + ALT + T** and unwrap by using **CTRL + SHIFT + DEL**. ![](https://i.imgur.com/weeCrEG.png) ## Multiple Selections By putting the caret at the near end of the symbol(red caret on img), we can use **ALT + J** to select the symbol, and as we keep using the same method, we can select the next occurance. And we can deselect one by one by using **ALT + SHIFT + J**. **Note:** * Select all occurences by using **CTRL + ALT + SHIFT + J**. * When all selected, we can change the symbol all at once. ![](https://i.imgur.com/FKXX7lX.png =300x180)