• 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.

search in code + manual saving possible?

I am going through some old code in GM:S2 (not having used GM:S since 1.4).
Two questions though:

1. Is it possible to search/search-replace the code. For example, I had given a variable a name that threw errors, so I had to change that everywhere in the code. I didn't see an icon for searchin though. Is it possible to activate that in settings somehow?

2. It seems my code is being saved automatically. In previous versions of GM:S, the code wasn't saved until I clicked a button. Is there any option to get back to that? In case I realize I messed up mid-code, it would be easier if I could cancel my changes and go back to the previous code.
 

Nocturne

Friendly Tyrant
Forum Staff
Admin
CTRL + F will bring up the code search for the current window, CTRL + SHIFT + F will bring up global search/replace (which is greatly improved over 1.4!). You can also open the global search replace window using the "Tool" menu at the top of the IDE.

As for going back, nope, that's not possible. GM will save everything, but it has a decent undo system so you can simply CTRL + Z until you get back to the point you were at. If it helps, for me when I'm editing sensitive code I usually just make a copy of it and then block comment the original (using /* and */ ) and edit the copy... :)
 
CTRL + F will bring up the code search for the current window, CTRL + SHIFT + F will bring up global search/replace (which is greatly improved over 1.4!). You can also open the global search replace window using the "Tool" menu at the top of the IDE.

As for going back, nope, that's not possible. GM will save everything, but it has a decent undo system so you can simply CTRL + Z until you get back to the point you were at. If it helps, for me when I'm editing sensitive code I usually just make a copy of it and then block comment the original (using /* and */ ) and edit the copy... :)
Ok, then I know. =) Thanks!
 
Top