• 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 Ability to add #region to the F4 snippets.txt menu

MrDave

Member
When you press F4 it brings up a snippets menu, which you can change by editing the snippets.txt file, this is all great.

However in this file # is used as a new line. I wanted to add:
#region //
#endregion //

It’s only a tiny time saving but it's more a quality of life improvement.

I’ve tried all sorts of slashes to escape it but I can't think of anything else. Any ideas on how I could add this to the snippets menu?
 
C

Claire

Guest
The bad news is that you can't at the moment, but the good news is that a region snippet has already been added internally and should be available in a future update.
 

MrDave

Member
A region snippet was added in GMS2 many months ago. I don't know about escape characters in the snippet window but I’m guessing you could just open the default one to see what the escape character is.
 
Top