YoYoGames / GameMaker-Bugs

Public tracking for GameMaker bugs
22 stars 8 forks source link

Mouse back button returns you to your previous line/window position #3860

Open iampremo opened 1 year ago

iampremo commented 1 year ago

Ticket #193546

Feature Type: feat_addition_ide Description: When you middle click on a user function, GMS2 takes you to the location of the function definition. It's really, really handy, but it's annoying when you just want to look at it quickly, then return to where you were before, since there is no quick way to get back to that location. On a mouse the back button, which some mice have, is used in browsers to go back a page. Can we have it used in GMS2 to return to the previous location we were, either after middle clicking, or just the previous line number and window we were prior to the one we are on now. You could also store the locations, so multiple back presses would cycle through your previous locations. Benefit: This would save so much time, and be super useful. I'm salivating at the thought of how useful this would be! Link:

AvioxArcade commented 6 months ago

Ctrl/Cmd + Tab does a pretty good job at this, with the exception of jumping between different sections of one long script/event code block, or some windows, when in a chain off of an asset (from, e.g. middle clicking a script)

There is a similar feature in Visual Studio Code where alt+left and alt+right can be used to cycle through your focus history, which includes different areas of one long text/code file.

It's a super handy way to jump back to something you were just looking at, and would be a great addition to the GM IDE.