简体   繁体   中英

Reload changed classes in IntelliJ groovy console

Is it possible to reload changed classes when in IntelliJ's groovy console?
I've seen there's a command for doing so in groovysh, but it seems groovysh is not the same as IntelliJ's groovy console.

See here: https://www.jetbrains.com/idea/help/reloading-classes.html

From the site: To reload changed classes

Do one of the following: On the main menu, choose Run | Reload Changed Classes. On the main menu, choose Build | Compile "class_name" to recompile an altered class during debug. Select In the Reload Changed Classes dialog box, confirm reloading. Results are displayed in the Messages tool window. To configure reloading behavior

On the main menu, choose File | Settings , and then expand the Debugger node. Open HotSwap page. Click one of the radio buttons in the group Reload classes after compilation. You can opt to always reload classes, reload after confirmation, or never do it.

In IDEA 15.0.3 I can use this workflow:

  • Ctrl-Shift-F9 (Compile)
  • Ctrl-F2 (stop Groovy)
  • Ctrl-Enter (rerun Groovy script)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM