IntelliJ IDEA14ãã¤ã³ã¹ãã¼ã«ãããè¨å®ãããã¨ï¼Groovyç·¨ï¼ #gadvent
ã¯ããã«
ããã¯G* Advent Calendarã®4æ¥ç®ã®è¨äºã§ããä»æ¥ã¯Spockã®æ°æ©è½ã«ã¤ãã¦æ¸ãã¾ããææ¥ã¯id:kyon_mm ããã®Geb 0.10ã®æ°æ©è½ã«ã¤ã㦠ã§ãã
æ¦è¦
以åã«IntelliJ IDEA 13ã§æ¸ãããIntelliJ + Groovyã§ãã¹ãã³ã¼ããæ¸ãæ¯æ¥ã§ãããããããè¨å®ããªãã¨ä»äºã«ãªããªãç³»ãã®ãã¾ã¨ãã¦ã¿ã¾ããããã¨ãããã¤ãã¢ãããã¼ããã¾ããå 容ã¯å¤ãã£ã¦ããããIntelliJ IDEA14ã®UIã«åãããã¨ããæãã§ãã
åé ç®ã®ãkeywordãã«ãããã®ãIntelliJã®ã¡ãã¥ã¼ãã¼ã«ããHelp -> Find Actionã§åºã¦ããæ¤ç´¢ããã¯ã¹ã«ãããã¨ããã®è¨å®ã ããï¼ãã£ã¦æ¤ç´¢çµæãã§ãã®ã§ããããã¯ãªãã¯ããã°ä¸çºã§æå¹ã«ãªãã¾ããã¾ããSettingsã§keywordãå ¥åããã¨ããã£ã½ããã®ããã£ã«ã¿ãªã³ã°ããã¦è¡¨ç¤ºããã¾ãã
IDEAèµ·åæã«æå¾ã«éããããã¸ã§ã¯ããéã|éããªã
keyword:Reopen last project on startup
- Settings -> Appearance & Behavior -> System Settings
- Startup/Shutdown -> Reopen last project on startup ã®ãã§ãã¯ããã¯ã¹ãoffã«ããã¨IDEAèµ·åæã«æå¾ã«éããããã¸ã§ã¯ããéããªãã
- Apply
è¡çªå·ã表示ãã
keyword:Show line number
- Settings -> Editor -> General -> Appearance
- Show line numberã®ãã§ãã¯ããã¯ã¹ãonã«ããã
- Apply
ããªã¼ã«ã¼ã½ã«ãããã
keyword:Allow placement of caret after end of line
- Settings -> Editor -> General
- Virtual Space -> Allow placement of caret after end of line ã®ãã§ãã¯ããã¯ã¹ãå¤ãã¨ããªã¼ã«ã¼ã½ã«ãç¡å¹ã«ãªãã
- Apply
ã¨ãã£ã¿ã§è¡¨ç¤ºãã¦ãããã¡ã¤ã«ã¨ããã¸ã§ã¯ãã®ããªã¼ã®é¸æãã¡ã¤ã«ãåæããã
- ããã¸ã§ã¯ããéãã¦ããç¶æ ã§ãprojectã®æ¯è»ãã¯ãªãã¯ããã
- Auto Scroll from Sourceã«ãã§ãã¯ãã¤ãç¶æ ã«ãªãããã«ã¯ãªãã¯ããã
ããã¸ã§ã¯ãã®ããªã¼ã§é¸æãããã¡ã¤ã«ãã¨ãã£ã¿ã«è¡¨ç¤ºããã(ããã«ã¯ãªãã¯ã§ã¯ãªãé¸æã§è¡¨ç¤ºããããã«ããã)
- ããã¸ã§ã¯ããéãã¦ããç¶æ ã§ãprojectã®æ¯è»ãã¯ãªãã¯ããã
- Auto Scroll to Sourceã«ãã§ãã¯ãã¤ãç¶æ ã«ãªãããã«ã¯ãªãã¯ããã
Spockã®ã©ãã«ããã¤ã©ã¤ããã
- Settings -> Plugins
- Browse Repositories
- å³ä¸ã®æ¤ç´¢çªã§ Spock ãå ¥å
- ä¸è¦§ã« Spock Framework Enhancements ãåºãã®ã§ãé¸æãã¦å³ã¯ãªãã¯-> Download and Install
- Close
- Applyåèµ·å(å¤å)
èªåä¿å
keyword:save files automatically
- Settings -> Appearance & Behavior -> System Settings -> Synchronization
- 4ã¤ã®ãã§ãã¯ããã¯ã¹ãå ¨ã¦onã«ããã
- save files automatically if application is idle for ã®æ°åã¯ãä½ç§éæä½ããªãã£ããèªåä¿åãããï¼ã
- Apply
ä¿åãããèªåã§ã³ã³ãã¤ã«
keyword:Make project automatically
- Settings -> Build, Execution, Deployment -> Compiler
- Make project automaticallyã®ãã§ãã¯ããã¯ã¹ãonã«ããã
- Apply
ãã¹ãã®èµ·åé«éå
keyword:EditConfiguration
- Run/Debug Configuration -> Defaults -> JUnit -> Before
- Makeãåé¤ãããæ¢ã«ãããã¹ãå®è¡ç³»(All HogeProjectãHogeTestã®ãããªãã®)ã¯åé¤ããã
- ãMake, no error checkãã«ã追å ããã
- OK
Ctrl(Command) + ãã¦ã¹ãã¤ã¼ã«ã§ã¨ãã£ã¿ã®æ¡å¤§ç¸®å°ãããã
keyword:Change font size
- Setting -> Editor -> General -> Change font size(Zoom) with ... ã®ãã§ãã¯ããã¯ã¹ãonã«ããã
- Apply