Created
January 5, 2022 14:46
-
-
Save IsmagilovQA/feebe283dbfc0bd97dfde2d47760cb89 to your computer and use it in GitHub Desktop.
[IntelliJ IDEA hotkeys on macOS]
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- Double shift -> open search panel; | |
- Command + 1 -> open/close left navigation bar | |
- Command + N -> `New` (in navigation bar) / `Generate` (in main window) | |
- Command + D -> Duplicate the code row | |
- Option + Command + V -> extract variable (every part of line can be extracted). Option 1 | |
- .var - at the end of line to declare variable (postfix completion). Option 2 | |
- Control + Space -> completion (Control + Space x 2 -> suggest variants in case no imports) | |
- Control + Shift + Space -> smart completion (only available options for current type) | |
- Option + Enter -> resolving the problem (e.g. add imports automatically, optimise imports, run test) | |
- Control + Option + O -> optimise imports | |
- Option + Command + N -> inline variable (past value of variable to all places where it uses) | |
- Command + click -> go inside method | |
- Command + Shift + E -> list with recent locations | |
- Add a bookmark -> left column (where green run triangle) right click-> add bookmark. See all bookmarks-> go to tab in nav bar. The same if you want to Add Mnemonic bookmark with letters or numbers. Also the same you can do with files/folders in nav bar. | |
- // todo …text of reminder here -> And in the Bottom you can open in menu TODO tab and see all todos. | |
- // fix …text. Also you can create your special text with pattern, e.g // wtf (go to settings -> todo -> and create \bwtf\b.*). | |
- Shift + Command + N New Scratch file -> in case you want to work with files that are not related to project. These files won’t be in git repo. It’s just local files for temporary work. All scratches files you can find in separate folder in nav bar. You can also create markdown file markd.md. | |
- Control + Shift + R -> Run test | |
- Control + Shift + D -> run test in Debug | |
- Right click on File or folder in nav bar -> `Open In` (terminal, Finder, GitHub) | |
- test -> creating template of test method or via Command+N | |
- psvm -> public static void main | |
- psf -> public static final | |
- psfi -> public static final int | |
- psfs -> public static final String | |
- sout -> println | |
- 10.for -> creating loop till 10 | |
- Docker plugin (View-> Tool Window -> Services). Add Docker as a service. | |
- Database support -> only ultimate edition of idea. For community we can use DB Navigator plugin. | |
- Selenium UI Automation Testing plugin | |
- HTTP Client (to write or correct http requests as code) | |
- Endpoints (we can link swagger spec and see even swagger UI and test endpoints) - Open API swagger Editor plugin for community edition | |
- Plugin for Rest Assured |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment