First time here? Check out the FAQ!

Source Browser - Follow Spot in Editor

Hello, Is there an option to make the Source Browser follow the spot I'm currently at inside the editor? I know there's a 'Follow Selection' option, but that works the other way around - it takes the cursor in the editor to the method or class that I click in the source browser.

I'm looking for an option to have the Source Browser select the spot my cursor is currently at in the editor (ie: Follow Selection in Editor). Is there an option that does that? I'm using Wing (does Wing 8 have this option?).

For example: in the screenshot below, I would like the Source Browser to select the method 'greet', because that's where my cursor currently is in the editor. However, the Source Browser has 'TestMain' highlighted instead.

image description


jrez's avatar
asked 2022-03-16 12:16:23 -0500
Wingware Support's avatar
Wingware Support
updated 2022-03-16 12:34:15 -0500
edit flag offensive 0 remove flag close merge delete


add a comment see more comments

1 Answer


No, currently it only can follow the selection in the Source Browser and there's no support for automatically moving the browser selection to follow focus in the editor. I suspect we didn't think this would add much. Could you explain the use rationale for this? You can also see that's in and around the current scope using source index menus at the top of the editor, although of course you have to click on them to see what they contain so it's not quite the same thing.

Also note that the Source Assistant does update according to focus in the editor, in case that helps to address this.

Wingware Support's avatar
Wingware Support
answered 2022-03-16 12:34:00 -0500
edit flag offensive 0 remove flag delete link


FWIW I've marked this as a feature request. Thanks!

Wingware Support's avatar Wingware Support (2022-03-16 12:34:29 -0500) edit

Ok great thanks.

The use-case would be: in a big project with lots of methods and/or classes, it will provide an overview of "nearby" methods/classes without having to read the editor in detail and without needing to click the index menus at the top of the editor. However, I could see it not being desirable for some, so perhaps having an option to enable/disable the feature would be better (in my opinion), instead of having it always be on.

Thanks again!

jrez's avatar jrez (2022-03-16 13:32:23 -0500) edit
add a comment see more comments

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss.

Add Answer