如何在 IntelliJ 中的 Groovy 中提取变量 (cmd+alt+v) 以获取此信息:
Car car = new Car()
而不是这个?
def car = new Car()
最佳答案
在 def
上使用 Shift + Tab并选择类型。下次 Intellij 将使用指定的类型。
关于intellij-idea - Groovy 和 IntelliJ : how to extract variable with explicit type declaration?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34767972/