CLOVIS
06/03/2024, 12:25 PM// File 1
interface Foo {
fun foo()
fun bar() // I just typed this, my cursor is here
}
// File 2, far away
class FooImpl : Foo {
override fun foo() {}
}
With my cursor somewhere in Foo.bar
, I would like to press a shortcut which would navigate me to FooImpl
automatically and generate the usual override fun bar() { TODO() }
stuff there.
For any other function in the interface, I can do Navigate → Go to implementation(s)
, but that doesn't work for the bar
function since it doesn't exist in the implementation yet.Sam
06/03/2024, 12:55 PMbar()
, and from there you could also assign it its own keyboard shortcut if you likeSam
06/03/2024, 12:55 PMCLOVIS
06/03/2024, 1:43 PMCLOVIS
06/03/2024, 1:46 PMSam
06/03/2024, 2:08 PMCLOVIS
06/03/2024, 3:04 PMCLOVIS
06/03/2024, 3:05 PMSam
06/03/2024, 3:07 PMCLOVIS
06/03/2024, 4:19 PM