Is there a simple way for getting the current code a developer is viewing? For example, is there a way to get a list of methods that are currently being displayed?
I'm looking to trigger events when users open and/or scroll past certain code. I only want the event to trigger when the code is visually displayed. My plan was to add file open/closed listeners and editor scroll listeners and keep track of what's currently between the visible start/end line offsets. Is there anything IntelliJ has built-in for this functionality?