YoYoGames / GameMaker-Bugs

Public tracking for GameMaker bugs
22 stars 8 forks source link

In-IDE snippet editor #2986

Open Gamer-XP opened 1 year ago

Gamer-XP commented 1 year ago

Is your feature request related to a problem?

It's is possible to create custom snippets in GMS2. But, thing is, it's so obscure most people won't even know it exists. I mean, you have to create a "snippet.exe" at "C:\ProgramData\GameMakerStudio2\User", then fill it in a very specific way. And all info about that was only in one official blog post. Moreover, it's super inconvenient creating those snippets because you have to format snippet code to be inline using special $ symbol as new line.

Describe the solution you'd like

Put snippet editor in IDE options, where you can create new or edit existing snippets, with multi-line editor, proper tabulation support, tips on special symbols like |select_this_part_after_creation|.

Describe alternatives you've considered

No response

Additional context

While at it, can also add new special symbols, like #TEXT THAT WAS SELECTED WHEN CREATING THIS SNIPPET# for easy region-like wrapper creation.

ParodyKnaveBob commented 9 months ago

Couple corrections: The manual mentions snippets.txt on one page, too.

Another difficulty I'd like to see overcome is that the base snippets.txt list remains when maybe I don't want it to be. I'm in no real habit of using the base snippets, but in implementing my own, the menu list only grows, flooded with options I don't want to see. Options to toggle the base, restore defaults, perhaps even toggle your own individual entries, etc. should certainly be included in this new IDE Snippets Preference.