A downloadable plugin

Quick links: Source code

This GMEdit plugin allows to quickly create scripts right from the code editor - hit a keyboard shortcut (default: Ctrl+N), enter a script name, and it will be created next to the currently open script.

You can also select some text and press the shortcut to use that name.

You can also right-click a resource tree folder and pick `Create > Create here` to create scripts in that directory.

If used in conjunction with Peek Aside, the new script will be opened in a side-view.

Download

Download
quick, make script.zip 1 kB

Install instructions

Unzip into a new directory in your Plugins directory.

Comments

Log in with itch.io to leave a comment.

it can't be used

disabled create here

If I don't pick a directory for scripts to be created in before trying to create a new script with Ctrl+N from within an object, I get a popup saying "Can't create a script next to this resource" (why not just default to the root script folder?), and then after dismissing the popup I can't type any code for some reason, until I restart GMEdit 🤔

Using latest GMEdit stable (May 6, 2020), GMS 2.2.5

"not being able to type code" is an Electron bug related to plugin using alert() instead of much longer-winded electron->Dialog->showMessageBox. It resolves by clicking away from the window and then back, but I should probably replace window.alert with that.

Dumping scripts into root folder seemed undesirable, but maybe less undesirable than not making scripts at all? Who knows

Good to know not being able to type can be fixed that easily, in hindsight I'm surprised I never tried clicking off and back on the window!

And yeah, I'd definitely prefer it creating the script in the root folder than not at all, feels less "punishing" and more similar to the GMS2 IDE as well (Alt+C creating a script in root)