IntelliJ IDEAã便å©ã«ãªã40ã®ã·ã§ã¼ãã«ãã
ããæ°ã«æã家ã§ãä»äºã§ãIntelliJ IDEAã使ã£ã¦ããã®ã§ããããã£ããã®IDEãªã®ã«ã·ã§ã¼ãã«ãããã»ã¨ãã©ä½¿ã£ã¦ããªãã¦å®ã®æã¡è
ãç¶æ
ã«ãªã£ã¦ããã®ã§ãã¡ãã£ã¨èª¿ã¹ã¦ä¾¿å©ãããªç©ãä¸æ¬ã«ã¾ã¨ãã¦ã¿ã¾ããã
Macã§ã¯å¾®å¦ã«éããã®ãããã®ã§æ³¨æã
ã·ã§ã¼ãã«ãã | åä½ |
---|---|
Ctrl + Space | Basic Code Completion |
Alt + Enter | Show intention actions and quick-fixes |
Ctrl + Alt + L | Reformat code |
Ctrl + Alt + O | Optimize imports |
Ctrl + P | Parameter info |
Ctrl + Q | Quick Documentation lookup |
Ctrl + F1 | Show descriptions of error or warning at caret |
Alt + Insert | Generate code |
Ctrl + O | Override methods |
Ctrl + I | Implement methods |
Ctrl + Alt + T | Surround with |
Ctrl + / | Comment/uncomment with line comment |
Ctrl + Shitt + / | Comment/uncomment with block comment |
Ctrl + W | Select successively increasing code blocks |
Ctrl + Shift + W | Decrease current selection to previous state |
Ctrl + D | Duplicate current line or selected block |
Ctrl + Y | Delete line at caret |
Shift + Enter | Start new line |
Ctrl + F4 | Close active editor tab |
Shift + F10 | Run |
Shift + F9 | Debug |
Ctrl + N | Go to class |
Ctrl + G | Go to line |
Ctrl + B | Go to declaration |
Ctrl + Alt + B | Go to implementation(s) |
Ctrl + H | Type hierarchy |
Ctrl + Shift + H | Method hierarchy |
Ctrl + Alt + H | Call hierarchy |
F11 | Toggle Bookmark |
Shift + F11 | Show Bookmarks |
F2 / Shift + F2 | Next/previous highlighted error |
Shift + F6 | Rename |
Ctrl + F6 | Change Signature |
Ctrl + Alt + N | Inline |
Ctrl + Alt + M | Extract Method |
Ctrl + Alt + V | Introduce Variable |
Ctrl + Alt + F | Introduce Field |
Ctrl + Alt + C | Introduce Constant |
Ctrl + Alt + P | Introduce Parameter |
Ctrl + J | Insert Live Template |
以ä¸è§£èª¬ã
Ctrl + Space [Basic Code Completion]
ããããå ¥åè£å®ãä¸çªãä¸è©±ã«ãªããã¤ã§ããã
Alt + Enter [Show intention actions and quick-fixes]
ãã£ã¬ããã®ããä½ç½®ã§è¡ãã®ã«é©ããã¢ã¯ã·ã§ã³ã®ä¸è¦§ã表示ãã¾ãã
ã¨ãã説æã ã¨ãªãã®ãã¨ãããããã«ããã§ãããã¨ã©ã¼ã»è¦å表示ã®ç®æã§ã¯åãæ¢ãããã®ã·ã§ã¼ãã«ããã使ãã°ä½ã¨ããªãããããªé ¼ãã«ãªã奴ã§ããäºçªç®ã«ãä¸è©±ã«ãªããã¤ã§ãã
ã¯ã©ã¹åã®ä¸ã§å
¥åããã¨ãµãã¯ã©ã¹ããã¹ãã¯ã©ã¹ãä½ãã¾ãã
Ctrl + Alt + L [Reformat code]
ã³ã¼ããèªåæ´å½¢ãã¾ããã¾ããæåã§ãªããããã¾ããããï¼
æ´å½¢ã«ã¼ã«ã¯è¨å®ã®Code Styleã§ç·¨éã§ãã¾ãã
Ctrl + Alt + O [Optimize imports]
ä¸è¦ãªimportãåé¤ããããã¦ããã¾ããã¾ããæåã§(ç¥
ãã¡ããè¨å®ã®Code Styleã§ã«ã¼ã«ãªã©ãç·¨éã§ãã¾ãã
Ctrl + P [Parameter info]
ã¡ã½ããã®ãã©ã¡ã¼ã¿ä¸è¦§ã表示ãã¾ãã
ãã©ã¡ã¼ã¿ãå¿ããæã«ã¯ããã
Ctrl + Q [Quick Documentation lookup]
javadocã表示ãã¾ãã
ãã®ã¯ã©ã¹/ã¡ã½ãããªãã ã£ãï¼ãããªæã«ã
Ctrl + F1 [Show descriptions of error or warning at caret]
ãã£ã¬ããä½ç½®ã®ã¨ã©ã¼/è¦åã®èª¬æã表示ãã¾ãã
Alt + Insert [Generate code]
ã³ã¼ããçæãã¾ãã
setter/getterã«ã¡ã½ããã®ãªã¼ãã¼ã©ã¤ããå§è²ãªã©ãçæã§ãã¾ãã
Ctrl + O [Override methods]
ãªã¼ãã¼ã©ã¤ãããã¡ã½ãããçæãã¾ãã
Ctrl + I [Implement methods]
interfaceã®ã¡ã½ããã®å®è£
ãçæãã¾ãã
ãã¡ããinterfaceãimplementãã¦ããªãã¯ã©ã¹ã§ã¯ç¡æå³ã§ãã
Ctrl + Alt + T [Surround with]
é¸æç®æãifæãwhileæãsynchronizedæãªã©ã§å²ã¿ã¾ãã
Ctrl + / [Comment/uncomment with line comment]
é¸æè¡ãã³ã¡ã³ãè¡åã¾ãã¯ãã®éãè¡ãã¾ãã
Ctrl + Shitt + / [Comment/uncomment with block comment]
é¸æç®æãã³ã¡ã³ããããã¯åã¾ãã¯ãã®éãè¡ãã¾ãã
Ctrl + W [Select successively increasing code blocks]
é£ç¶ããã³ã¼ããããã¯ãé¸æç¶æ
ã«ãã¾ãã
é£ç¶ã§å
¥åããã¨ãå
¥åãããã¨ã«é¸æç¯å²ãåºããã¾ãã
Ctrl + Shift + W [Decrease current selection to previous state]
å ¥åãããã¨ã«é¸æç¯å²ãå°ãããªãã¾ããä¸ã®ã·ã§ã¼ãã«ããã¨çµã¿åããã¦ä½¿ãã¾ãã
Ctrl + D [Duplicate current line or selected block]
ãã£ã¬ããã®è¡ã¾ãã¯é¸æç®æãè¤è£½ãã¾ãã
Ctrl + Y [Delete line at caret]
ãã£ã¬ããã®ããè¡ãåé¤ãã¾ãã
Shift + Enter [Start new line]
æ°ããè¡ãå
¥åãã¾ãã
ã©ã®ä½ç½®ã«ãã£ã¬ããããã£ã¦ãæ°ããè¡ãå
¥åã§ãã¦ä¾¿å©ã§ãã
Ctrl + F4 [Close active editor tab]
ã¢ã¯ãã£ããªã¿ããéãã¾ãã
Shift + F10 [Run]
å®è¡ãã¾ãã
Shift + F9 [Debug]
ãããã°ã¢ã¼ãã§å®è¡ãã¾ããã
Ctrl + N [Go to class]
å ¥åæ¬ã表示ãããã®ã§ãã¯ã©ã¹åãå ¥åããã¨ãã®ã¯ã©ã¹ã®ã³ã¼ãã«ç§»åãã¾ãã
Ctrl + G [Go to line]
è¡çªå·ãå ¥åããã¨ãã®è¡ã«ç§»åãã¾ãã
Ctrl + B [Go to declaration]
ã¯ã©ã¹ãã¡ã½ãããå¤æ°ãªã©ã®å®£è¨ç®æã«ç§»åãã¾ãã
Ctrl + Alt + B [Go to implementation(s)]
ã¤ã³ã¿ã¼ãã§ã¤ã¹ããã®ã¡ã½ãããå®è£ ãã¦ããã¯ã©ã¹ã®ä¸è¦§ã表示ãã¾ãã
Ctrl + H [Type hierarchy]
ã¯ã©ã¹ã®ç¶æ¿é層ã表示ãã¾ãã
Ctrl + Shift + H [Method hierarchy]
ç¶æ¿ãã¦ããã¯ã©ã¹ãªã©ã§ã®ã¡ã½ããã®ãªã¼ãã¼ã©ã¤ãã®ç¶æ³ã表示ãã¾ãã
Ctrl + Alt + H [Call hierarchy]
ã¡ã½ãããå¼ã³åºãã¦ããã¡ã½ããã®ä¸è¦§ã表示ãã¾ãã
F11 [Toggle Bookmark]
ãã£ã¬ããã®ããè¡ãããã¯ãã¼ã¯ã«è¿½å ã¾ãã¯åé¤ãã¾ãã
Shift + F11 [Show Bookmarks]
ããã¯ãã¼ã¯ã®ä¸è¦§ã表示ãã¾ãã
F2 / Shift + F2 [Next/previous highlighted error]
ã³ã¼ãä¸ã®æ¬¡ã®/åã®ã¨ã©ã¼ç®æã«ç§»åãã¾ãã
Shift + F6 [Rename]
ã¯ã©ã¹åãã¡ã½ããåãå¤æ°åãªã©ãå¤æ´ãã¾ãã
Ctrl + Alt + N [Inline]
é¸æãã¦ããã¡ã½ãããã¤ã³ã©ã¤ã³å±éãã¾ãã
使ããã¨ãããã®ãå¾®å¦ã§ããä¸å¿ã
Ctrl + Alt + M [Extract Method]
é¸æç®æãã¡ã½ããã«ãã¾ãã
Ctrl + Alt + V [Introduce Variable]
å¤æ°å®£è¨ãå ¥åãã¾ãã
new ArrayList<String>();
ã ãå ¥åãã¦ãããã®ã·ã§ã¼ãã«ãããã¼ãå ¥åããã¨
ArrayList<String> strings = new ArrayList<String>();
ãããªæãã«è£å®ããã¾ãã
Ctrl + Alt + F [Introduce Field]
ãã¡ãã¯ãã£ã¼ã«ãã¨ãã¦å®£è¨ãå ¥åãã¾ãã
Ctrl + Alt + C [Introduce Constant]
ãã¡ãã¯static finalãªãã£ã¼ã«ãã¨ãã¦å®£è¨ãå ¥åãã¾ãã
Ctrl + Alt + P [Introduce Parameter]
ãã¡ãã¯ã¡ã½ãããã³ã³ã¹ãã©ã¯ã¿ã®ãã©ã¡ã¼ã¿ã¨ãã¦å®£è¨ãå ¥åãã¾ãã
Ctrl + J [Insert Live Template]
ãã³ãã¬ã¼ããå
¥åãã¾ãã
soutã§
System.out.println();
ãªã©ãããã¤ãæ¨æºã§ããã³ãã¬ã¼ããè¨å®ããã¦ãã¾ãã