Ask Your Question

Source Browser - Follow Spot in Editor

asked 2022-03-16 12:16:23 -0500

jrez's avatar

updated 2022-03-16 12:34:15 -0500

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


edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2022-03-16 12:34:00 -0500

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.

edit flag offensive delete link more


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

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools



Asked: 2022-03-16 12:16:23 -0500

Seen: 146 times

Last updated: Mar 21 '22