question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Add a 'go to super method' navigation

See original GitHub issue

Seems like it’s available in IntelliJ.

class A {
  void blah() {}
}

class B extends A {
  @override
  void blah() { /* cursor here */ }
}

From the cursor position, press a hotkey or execute a command, move to A.blah()

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:1
  • Comments:9 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
DanTupcommented, Apr 3, 2018

Got this in #777 though I need to fix some tests before merging.

As a minor extra quality of life difference with class hierarchy, it would be nice if C extends B and B extends A to go straight from C to A if A has a method that B doesn’t override but that C does.

This works, since we wouldn’t really have anywhere to take you in B 😃

https://github.com/Dart-Code/Dart-Code/blob/ddd021b16c3991aa5313ee743bf5b8882fbc10dd/test/dart_only/commands/go_to_super_method.test.ts#L28-L38

0reactions
DanTupcommented, Apr 2, 2018

Great, thanks for the info. I’ll have a look at stashing this data somewhere so it can be access as necessary.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Source code navigation | IntelliJ IDEA Documentation
To navigate to the super method, press Ctrl+U . To navigate to the implementation, press Ctrl+Alt+B . Use Inheritors hints that are displayed ......
Read more >
Intellij, open up superclass, or give a list of ... - Stack Overflow
Navigate to super method works only if there is a method in the super class that matches. So don't give me that tip....
Read more >
Add an ability to go to super class/method · Issue #1416 - GitHub
We already look recursively to find the top class in the ImplementationProvider, we could reuse to just go one level up. This could...
Read more >
Easy Code Navigation with GoTo - VSCode Pro Tips - YouTube
Become a Level Up Pro and take your web skills to the next level!https://www.leveluptutorials.comThe best web development podcast out ...
Read more >
Navigation prop reference
goBack ​. The goBack method lets us go back to the previous screen in the navigator. By default, goBack will go back from ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found