Show tooltip with "if" condition when hovering over "else"
Could not find anything via search, no idea if PyCharm can do that already and I did not find it, or if it's a feature request.
What I want:
- I mouseover an "else" or "elif" and the tooltip shows me the "if" condition for that "else".
Possible?
Even better solution:
- Tooltip shows me every branch condition for that "if", each in in one line. Tooltip example: First line: "if x > 5"; Second line: "elif x = 2; Third line: "else". Each one clickable to link to the correct line.
Situation this is useful for:
- Having code with an "if", maybe some "elif" and an "else".
- The code inside the "if" has more lines than the screen shows - or in general my solution is much quicker since you don't have to search for the relevant "if" manually.
- Want to read the code and quickly inspect when the "else" is actually triggered/what it belongs to.
Thank you.
Please sign in to leave a comment.
There is no such feature at the moment.
Please feel free to submit a feature request about it to our issue tracker using the link https://youtrack.jetbrains.com/issues/IDEA