Saturday, 28 July 2018

IntelliJ Shortcut

in construction ...

Navigation:
Recent Files: Ctrl + e from the popup to select recently opened files.
Go to a line: Ctrl + g
From variable to its declaration: F4
From an error to the next error: F2
Go from the interface to its implementation:  Ctrl+alt+b
Moving back to the previous edited location:  Ctrl+alt+backspace
Switching between Tabs: Alt + left arrow, or right arrow
Go to a class: Ctrl+n
Go to a file: Ctrl+shift+n
Type structure: Ctrl + h
File structure(methods and fields alone): Ctrl +F12

Search:
search anywhere:  double shift.
find a class: Ctrl+n   fx: UR:14 directly go to class line 14
find in a path: Ctrl+shift+f
find a file; Ctrl + shift + n

Usage
High-lightening usages in the file: Ctrl+Alt+F7
Comparing any two files: in project select both files and Ctrl + d

Class
Definition of class: Ctrl+shift+I
Show class hierarchy: put the cursor on a class name, and press Ctrl + h
Show call hierarchy: Ctrl + ALT + h

Imports:
Optimizing imports:  Ctrl + alt + o

Disable import wildcard:  settings (Ctrl + alt + s); editor; code style; Java; Imports; field: enable single class import; change number at : "class count to use import ...  " and "name count to use static ... "

Debug:
showing all breaks: Ctrl + shift + f8
toggle a breaking point: Ctrl +f8
evaluation: shift + f8

Refactor:
Abstracting statements into a method: Ctrl+alt+m
Rename: alt+f6

Editor:
Reformatting: Ctrl+alt+L
Switching between method and its invocation: Ctrl+b
Go to implementation from interface: Ctrl + alt + b
Close a Tab: Ctrl+ F4
Choose a content to paste: Ctrl+shift+v
Surround code fragments: ctrl+alt+t

Unit Test:
create a unit test for the current class: Ctrl+shift+T

Generate Code:
insert new code:  alt + insert
inherit from interface: Ctrl+i

Version Control
VCS tool window: Alt +9
put file into VCS: Ctrl+alt+a

No comments:

Can Jackson Deserialize Java Time ZonedDateTime

Yes, but must include JSR310. Thus ZonedDateTime can be deserialized directly from JSON response to POJO field. <dependency> <g...