• Hey Guest! Ever feel like entering a Game Jam, but the time limit is always too much pressure? We get it... You lead a hectic life and dedicating 3 whole days to make a game just doesn't work for you! So, why not enter the GMC SLOW JAM? Take your time! Kick back and make your game over 4 months! Interested? Then just click here!
  • Hello [name]! Thanks for joining the GMC. Before making any posts in the Tech Support forum, can we suggest you read the forum rules? These are simple guidelines that we ask you to follow so that you can get the best help possible for your issue.

Question - IDE Undo-steps being wiped, when deselecting a window?

N

NilsRungholm

Guest
I've recently transitioned from GM:S 1.4x to GM:S 2 due to the discontinuation of 1.4x, and there are a lot of things I don't get about the new interface..

My issue is: I've gotten into a habit of holding 'space' and dragging, to look around in my workspace. This seems like to the only way to look left/right, as 'ctrl'+'tab' won't allow me to jump directly to an open block of code. If I accidentally have the cursor inside some code, 'space' will write a lot of spaces and the mouse-button will highlight text - in addition to dragging the view around.

This means that I sometimes highlight a few lines, overwrite them with space, and then I can't undo more than 2-3 steps, wiping my code off the face of the earth. I do suspect that the temporarily stored undo-steps are being wiped, because I deselect and select the window unwittingly whist dragging... (?)

Is there any way to circumvent this problem, and/or to increase the number of undo-steps being stored (if that's the issue)? ...as you can imagine, this gets pretty frustrating (especially since I didn't even want to move to GM:S 2 in the first place, let alone pay for it).

Thank you in advance.
 
Z

Zeralith

Guest
On a Windows desktop, you can hold middle-mouse button down to drag your Workspace around. If you're on a laptop (with a trackpad) or a macOS computer (with only a 1 button mouse), then there are other options for you to navigate the Workspace.

They can be found, in the manual, here: https://docs2.yoyogames.com/source/_build/1_overview/2_quick_start/3_workspaces.html

and here: https://docs2.yoyogames.com/source/_build/1_overview/1_getting_started/8_input.html

To see how big your Undo/Redo history is, I believe that setting is in:

File >> Preferences >> Text Editors >> Code Editor

Scroll down to the very bottom, of this Code Editor tab, and you'll see an edit field for "Undo/Redo stack limit (<0 unlimited)"

Mine is currently set to "-1" and it seems to work correctly.
 
Top