IntelliJ Usage: Difference between revisions
(8 intermediate revisions by the same user not shown) | |||
Line 20: | Line 20: | ||
This option activates unused import detection and their automatic removal when the file is edited. | This option activates unused import detection and their automatic removal when the file is edited. | ||
=Search Everywhere= | |||
Double Shift | |||
=Find by Name= | |||
==Find a Class by Name== | |||
Command+N | |||
==Find a File by Name== | |||
Command+Shift+N | |||
=Indent= | |||
==Indent Selected Block== | |||
Option ⌥ + Command ⌘ + i | |||
=Soft Wrap for .md Files= | |||
Preferences → Editor → General → Soft Wraps → Soft-wrap these files: <code>*.md</code> | |||
=IntelliJ on Mac= | |||
==Show Hidden Files and Directories on Mac== | ==Show Hidden Files and Directories on Mac== | ||
Line 31: | Line 57: | ||
Alternatively, Command - Shift - G is supposed to go to any directory, but it does not seem to work. | Alternatively, Command - Shift - G is supposed to go to any directory, but it does not seem to work. | ||
== | ==Change the Behavior of Function Keys== | ||
{{Internal|Mac_General_Usage#Change_the_Behavior_of_Function_Keys|Change the Behavior of Function Keys on Mac}} | |||
=Decompile Class= | |||
Save .class and load it in the editor. Also see: {{Internal|Java_Decompilers#IntelliJ|Java Decompilers}} |
Latest revision as of 19:49, 12 June 2021
Internal
Folding and Expanding Code Blocks
https://www.jetbrains.com/idea/help/folding-and-expanding-code-blocks.html
To collapse all code blocks in the selected area, or in the current file if no area is selected: ⇧ Shift - ⌘ Command - Minus (-)
Display Maven Dependencies
Maven Project Tab -> Right click on the module in question -> Show Dependencies (Popup)
Refactoring
Optimize Imports on the Fly
Preferences -> Editor -> General -> Auto Import -> Optimize imports on the fly
This option activates unused import detection and their automatic removal when the file is edited.
Search Everywhere
Double Shift
Find by Name
Find a Class by Name
Command+N
Find a File by Name
Command+Shift+N
Indent
Indent Selected Block
Option ⌥ + Command ⌘ + i
Soft Wrap for .md Files
Preferences → Editor → General → Soft Wraps → Soft-wrap these files: *.md
IntelliJ on Mac
Show Hidden Files and Directories on Mac
Delegate to native Mac functionality when in the Finder window: use Command + Shift + Period.
More details:
Alternatively, Command - Shift - G is supposed to go to any directory, but it does not seem to work.
Change the Behavior of Function Keys
Decompile Class
Save .class and load it in the editor. Also see: